> 
> I am looking to write a script that will look in a
> file for a list of text strings to search for like
> 
> req_aaaa
> req_bbb
> req_ccc
> 
> and search all the files in a subdirectory and below
> for the string, if it is found, then it prints out the
> the original string followed by the file name for each
> instance where it is found.  If it gets through all
> the files and finds none, the it prints out the
> original string and the Words NOT FOUND.
> 

You can probably do this with a one liner. I am NOT  good with one liners,
but there are many on the list who are. i suppose it would be something like
perl -p -i -e 'm/req_ccc/' glob("/dir/2grep*")




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to