Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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?
[Corion]: But at least I have a plan of action to move the site to https, played some (free!) VR games with friends and watched the plans for the next German Perl workshop progress ;)
[Corion]: AltSpace VR is amazingly good - highly polished and with some of the games you get for free what you'd pay EUR 20 or EUR 40 otherwise
[Corion]: But maybe it's also due to that I play with friends, which makes a game more enjoyable anyway ;)
[Corion]: Oh - I released a new version of some module, thanks to a pull request. But I don't consider "update Makefile.PL" and "update author tests" as "writing code" ;-D
[marto]: sounds fun, the opposite of my weekend :P
[Corion]: marto: You wrote Perl? Or did you have to work (and wrote Perl)?

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2017-08-21 09:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (319 votes). Check out past polls.

    Notices?