Parsing through many big files in folder using terminal command and outputting terminal output to text file (C/C++) -


i'd read in output specified terminal command , store in text file. terminal command includes path file in i'd loop through each file in folder, , storing output terminal text file. want keep output in 1 text file in order.

for example,

i want use command in terminal:

"translate /data/xyzdata/raw/ne/vdata***.gz"

where translate user built command takes .gz file , outputs ascii on terminal display. * represents changing part of file name each time parses through contents of folder.

note these files enormous. data particle physics detector.

eventually, i'd parse through .../raw/**/... well, going through few other folders.

i'd take text file , read in lines , sum columns produce histograms of hit rates per detector section.

a typical file looks this:

00000000 00000010 00010001 11001100

where each digit section of detector , 1 represents "hit".

any ideas? i'm open trying new.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -