Re: examining a file line-by-line

2002-04-15 Thread Jeff 'japhy' Pinyan
On Apr 15, Dave Chappell said: >I open 1 file for reading and another for writing. The script examines each >line of the file being read and if any of the following words or digits >matches, skip the line and go to the next. Write everything else to another >file. > >while () { > next if /(\d5|

RE: examining a file line-by-line

2002-04-15 Thread Nikola Janceski
I asked this same question.. The second way would be more efficent if you put the pattern that will match more often first/at the top. > -Original Message- > From: Dave Chappell [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 15, 2002 10:30 AM > To: [EMAIL PROTECTED] > Subject: examining