Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2017-06-29 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (653 votes). Check out past polls.