Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: one liner truncate beginning at line with keyword

by kennethk (Monsignor)
on Jan 22, 2013 at 19:00 UTC ( #1014763=note: print w/ replies, xml ) Need Help??


in reply to one liner truncate beginning at line with keyword

What did you try? What didn't work? Why do you want it to be a 1-liner? The easiest way I see to do it would be using a flag to track whether you've seen the line in question and the -n and -i switches.

So pretty much what LanX said.


#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.


Comment on Re: one liner truncate beginning at line with keyword

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2014-07-14 11:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (257 votes), past polls