Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: one liner truncate beginning at line with keyword

by kennethk (Abbot)
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 contemplating the Monastery: (6)
As of 2015-07-07 01:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (86 votes), past polls