in reply to search for a pattern in file without opening the file
as long as its a simple pattern.my $success = ( system("grep $searchpat $file >/dev/null") ) ? 0 : 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: search for a pattern in file without opening the file
by Anonymous Monk on Oct 30, 2018 at 00:42 UTC | |
by hippo (Archbishop) on Oct 30, 2018 at 09:04 UTC |