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

Re: deletion of one line of a particula pattern

by ccn (Vicar)
on Aug 23, 2004 at 19:56 UTC ( #385201=note: print w/replies, xml ) Need Help??


in reply to deletion of one line of a particula pattern

perl -ne "print unless /ID:/" datafile

update: perl -i.bak -lne "print $1 if /\((E\d+)\)/" datafile

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (1)
As of 2023-10-04 00:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?