Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Regex

by petral (Curate)
on Oct 29, 2002 at 15:06 UTC ( #208761=note: print w/replies, xml ) Need Help??


in reply to Delete the first line of a file ?

Just for completeness, here's how one can do it with a regex:
perl -p0777we 's/ .+? ( ^ .* ^ ) .* /$1/xms'


  p

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2020-01-20 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?