String search in multiple gziped files
Posted on 2004-10-14
I looked through the previous solutions, but did not find this specific anwer.
When I grep for a string in a list of regular files, it shows what file the string is in when it lists the occurances of the string.
I realize to do a string search in a directory of gzipped files, I can
gzcat * | grep -i Error
But, this only shows the occurance of the string and does not show which files the string occurs in. So, I have to do the search manually against each file in the directory. What do I do to have the output of " gzcat * | grep -i Error " show which files it finds the string. Thanks for your help!