Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11113854]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2024-04-23 13:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found