I need to extract specific information from my data and the summarize it.
I have 246 files that I need to do the same thing.
So I did
for f in *.vcf; awk -F"\t" 'NR>1 {split($10,a,":");
count10[a[7]]++}
END {for (i in count10)
if (i>0.25)
sum += count10[i];
print sum }' "$f" > ${f}.txt
I get new files for each old file which contain information I extracted from the old file ( some integers )
I then concatenate the new files by using cat function to produce one final big file
Is there a simpler way to concatenate all files without producing single new files