Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] shell question
- Date: Fri, 16 Apr 2004 14:57:02 +0900 (JST)
- From: Tod McQuillin <devin@example.com>
- Subject: Re: [tlug] shell question
- References: <20040416041018.A39D.SL@example.com>
On Fri, 16 Apr 2004, Stephen Lee wrote: > I often find myself wanting to remove from piped data lines starting > with one regxp and ending with another. e.g. > > This is line 1 > Beginning > some unneeded data > some more unneeded data > Finishing > Some more lines > > I want to remove every line between 'Beginning' and 'Finishing' > inclusive. Do you know any quick, short command that does it? perl -ne 'print unless /^Beginning$/ .. /^Finishing$/' file -- Tod McQuillin
- Follow-Ups:
- Re: [tlug] shell question
- From: Stephen Lee
- Re: [tlug] shell question
- From: Viktor Pavlenko
- References:
- [tlug] shell question
- From: Stephen Lee
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] shell question
- Next by Date: Re: [tlug] shell question
- Previous by thread: Re: [tlug] shell question
- Next by thread: Re: [tlug] shell question
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links