in reply to Help with script to search all files for certain words.

What have you tried?

Perl's search operator can do or operations.

while(<INFILE>) { if(/(sales|price|invoice)=/) { # do stuff } }


Be Appropriate && Follow Your Curiosity