Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: searching files

by clueless newbie (Curate)
on Mar 05, 2020 at 14:59 UTC ( [id://11113854] : note . print w/replies, xml ) Need Help??

in reply to searching files

Andy Lester's ack will do that quite nicely.

To search files NOT named ".lst" for the string ".txt":

ack "--ignore-file=match:\.lst" "\.txt"

Or in your case something like

ack "--ignore-file=match:<user stuff here>_ABC_.*\.pdf" "\.txt"

Yes, it's coded in perl.

Yes, I'm on Windows. For *nix use 's in place of "s.