Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 chanting in the Monastery: (15)
As of 2014-07-30 17:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (237 votes), past polls