What have you tried?
Perl's search operator can do or operations.
while(<INFILE>) { if(/(sales|price|invoice)=/) { # do stuff } }
In reply to Re: Help with script to search all files for certain words.
by mikeraz
in thread Help with script to search all files for certain words.
by theninja
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |