Unix sheel script or equivalent (maybe perl?) I have a bunch of zipped and unzipped text files with the same prefix that need to be parsed to select only the ones i need based on a string on a specific position, then i need to look all all the rows selected and keep 2 seperate strings in there.. finally the strings kept need to be grouped so i can simply have counts. I don't wish to send this to a database.
For the script you can say that i need to keep the lines which have "foo" starting at the 10th caracter. Then i need to keep string "name1" and "name2".
The files are big so if possible nothing outputted except the results.