Vote count:
0
i am executing a command over a bunch of files, and extracting a simple data (a number) from each file. then i want to dump all this set of data into a txt file, this is my script
! /bin/sh
for i in RECO/*.root
do
edmEventSize -v "$i" |grep "File"| cut -d " " -f 4 > salida2.txt
done
but the file salida2.txt just shows the data of the last file, and i need the data of the other files into the same salida2.txt (for example file1 gives me number 1, file2->2, file3->3, etc and in salida2.txt i need all this numbers 1,2,3)
Thank you in advance
asked 1 min ago
Aucun commentaire:
Enregistrer un commentaire