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.
In reply to Re: one liner truncate beginning at line with keyword
by kennethk
in thread one liner truncate beginning at line with keyword
by simplyseth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |