in reply to Searching text files
...sitting behind a primitive gui should do it. you can get a (standalone..without cygwin) grep.exe for windows as well. if you must call it from perl then just wrap inside backticks and assign the output to a variablegrep $phone_num file1 file2 file3
my $result = `grep $phone_num file1 file2 file3`; if($result) { print "number is in blocked list"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Searching text files
by planetscape (Chancellor) on Sep 14, 2006 at 22:45 UTC | |
|
Re^2: Searching text files
by Not_a_Number (Prior) on Sep 14, 2006 at 19:04 UTC | |
by davido (Cardinal) on Sep 14, 2006 at 19:11 UTC | |
by aquarium (Curate) on Sep 16, 2006 at 14:05 UTC | |
by Not_a_Number (Prior) on Sep 14, 2006 at 19:27 UTC |