scottyjohn
Technical User
Hi all,
I am currently using the following command to cat a bunch of .gz files, gunzip -c them, and then grep for a text string which sends to output file
What I need is to have the filename of the original file where the text was found, as part of the output. Is this possible? Im a Solaris newbie!
Cheers
John
I am currently using the following command to cat a bunch of .gz files, gunzip -c them, and then grep for a text string which sends to output file
Code:
cat *.gz |gunzip -c |grep "person_dbid = 10353" >Skillchange8.txt
What I need is to have the filename of the original file where the text was found, as part of the output. Is this possible? Im a Solaris newbie!
Cheers
John