sum numbers in multiple files

I have 11 directories with around 200 files in each. In each directory the files are labeled out.0 through out.201 . Each file has around 118 numbers in a single column. I need to sum the files in each directory so each directory will have a resultant vector that is 118 numbers long. I then need to combine the vectors into a single file that is 11*118 (1298) numbers long. Someone mentioned using 'cat' but since i only wrote my first csh script over the weekend I have no idea where to start.

thanks in advance

DirA
 out.0
  contains 118 rows, each with a number
 out.1
  contains 118 rows, each with a number
 ...
DirB
 repeats

Fairly straight-forward to hav a loop add up all of the numbers.
But, not sure what you mean by resulting vector.

you have the directory structure right. Im not trying to sum up each number within the file. Within each dir all 200 of the first entries would be summed, same for the second ..... through the 118th entry of each file. This would result in each directory having a summed column that is 118 numbers long. I then need to combine those numbers from each dir into one file so it would contain the 118 numbers * 11 dir = 1298 numbers in the final data file.

so inside a dir:

out.1:
0
5
10

out.2
0
5
100

sum=
0
10
110

DirA
 out.0
  contains 118 rows, each with a number
 out.1
  contains 118 rows, each with a number
 ...
DirB
 repeats
inside DirA
 open out.0
  add up all rows in the file, get a number 31543
  write that to a temp file call DirA_sums
 open out.1
  add up all rows in the file, get a number 19548
  write that to a temp file call DirA_sums
  DirA_sums now contains 31543 19548
 continue through all of the files
inside DirB
 process the out.? files in same manner

continue through DirK (11th directory)

After the above, I would have eleven files, each containing 118 numbers (which are the sums from the files within the directory)

Do I got that right?

not quite.....
should be more like this:

inside DirA
 open out.0
  store all rows in the file to array
 open out.1
  store all rows in the file to temparray
  set array = array + temparray
 open out.2
  store all rows in the file to temparray
  set array = array + temparray


 continue through all of the files
 Write array to tempfile out.DirA

inside DirB
 process the out.0-200 files in same manner

continue through DirK (11th directory)

after 11th directory
Write out.DirA to finaloutput.file
append out.DirB to finaloutput.file
...
append out.DirK to finaloutput.file

given a sample structure (2 dirs, 4 files in each)
each file has five numbers in it, one per line
./DirA/out.0
./DirA/out.1
./DirA/out.2
./DirA/out.3
./DirB/out.0
./DirB/out.1
./DirB/out.2
./DirB/out.3

Start of the script programming

> cat manip  
#! /usr/bin/bash

find . -name out* | sort >file_list

rm *.arr 2>/dev/null
while read zf
  do
  echo $zf
  tfile=$(echo $zf | cut -d "/" -f2)
  arr_txt=$(cat $zf | tr "\n" " ")
  echo "$arr_txt" >>"$tfile".arr
done <file_list

program execution

> manip
./DirA/out.0
./DirA/out.1
./DirA/out.2
./DirA/out.3
./DirB/out.0
./DirB/out.1
./DirB/out.2
./DirB/out.3

see the resultant two files created

> cat DirA.arr
2 4 6 8 10  
1 3 5 7 9  
21 22 31 32 33  
12 13 14 15 16  
> cat DirB.arr
3 4 5 6 7  
6 7 19 10 11  
5 10 9 6 14  
19 20 2 3 10  

I know that the files were read properly, to create each line in my .arr files.

So, if this looks to be on-course, it is fairly straight-forward to combine my .arr files into one larger file. So...