as long as its a simple pattern.my $success = ( system("grep $searchpat $file >/dev/null") ) ? 0 : 1;
In reply to Re: search for a pattern in file without opening the file
by tcf03
in thread search for a pattern in file without opening the file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |