I need to search for a certain string in a datafile and execute some other code 
if a match is found.

Do I have to read in the file before I can perform a grep? I thought the grep 
works like it would from a command line?

grep "string to search" <FILENAME>





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to