I have 170 files in .t2 format that I'm trying to extract some variables. Here is the command I used.
awk '{x[$1 "\t" $2]+=$8;}END{for(i in x)print x[i];}' *.t2>volume.txt
The problem is it doesn't write anything to output file. When I tried one file it works. But I cannot do it one by one for 170 files.