I am familiar with grep in the shell. Will that grep line work in the context of a perl script?
The code is looking at a directory full of .txt files. I want to parse a line in the .txt file only if the file does NOT contain the line "CLASS IC" M ----- Original Message ----- From: "Bob Showalter" <[EMAIL PROTECTED]> To: "'M.V.Johnson'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, September 12, 2003 1:25 PM Subject: RE: Searching files > M.V.Johnson wrote: > > What is the easiest way to search a text file for the line "CLASS IC" > > $ grep -q 'CLASS IC' mytextfile && echo 'Found it!' > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]