in reply to Parsing a list of files to see if any contain any one of a list of comma delimited strings

Super Searching 'files search' finds a plethora of nodes that ask similar questions. The general answer is build a regex from the strings you want to search for then work your way through the files a line at a time looking for matches against the regex.

Modules like Regexp::Any and Regexp::Assemble can help a lot with generating the regex for you from a bunch of strings.


DWIM is Perl's answer to Gödel
  • Comment on Re: Parsing a list of files to see if any contain any one of a list of comma delimited strings