in reply to search match within flat text file
which basically opens up the file goes thru one line at a timeuse strict; $tmp="some file"; open (FILE,"$tmp"); while(<FILE>) { if (/file error/i) {print "error in file";} else {print"@_ no error";} }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: search match within flat text file
by particle (Vicar) on May 31, 2002 at 01:45 UTC | |
|
Re: Re: search match within flat text file
by grep (Monsignor) on May 31, 2002 at 01:31 UTC |