Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: working with text files

by arhuman (Vicar)
on Oct 31, 2001 at 20:47 UTC ( [id://122366]=note: print w/replies, xml ) Need Help??


in reply to working with text files

something like this ? :

perl -n -e 'print if /\w{3}[^\s]\d{3}/' *.txt

Of course you'll have to modify the regex to fit your need...

See perlrun for cleaner use (hint: -p)

"Only Bad Coders Code Badly In Perl" (OBC2BIP)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-19 04:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found