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

Re: use regex match from file grep

by delirium (Chaplain)
on Jun 11, 2004 at 12:16 UTC ( [id://363387]=note: print w/replies, xml ) Need Help??


in reply to use regex match from file grep

This is a great job for a one-liner and the post-match variable:

perl -ne "print $' if /^tag\: /" file.txt

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2025-02-08 22:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (95 votes). Check out past polls.