Efficient matching

2007-05-21 Thread Karyn Williams
I need to check for strings in a file. An example would be checking for a username in /etc/passwd or /var/log/maillog. The string is in another file, sometimes a single field on a line by itself, sometimes in a line with other strings. Based on what I have seen online and what I have done in other

Re: Efficient matching

2007-05-21 Thread John W. Krahn
Karyn Williams wrote: I need to check for strings in a file. An example would be checking for a username in /etc/passwd or /var/log/maillog. The string is in another file, sometimes a single field on a line by itself, sometimes in a line with other strings. Based on what I have seen online