Re: sed Guru wanted

2013-07-12 Thread Matthias Apitz
El día Friday, July 12, 2013 a las 10:44:07AM -0500, Robert Bonomi escribió: > > I can delete in a text file with > > > > sed '/pattern1/,/pattern2/d' < file > > > > all lines between the lines with the given patterns, including themself > > also; how could I specify that the deletion should exc

Re: sed Guru wanted

2013-07-12 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org Fri Jul 12 05:13:11 2013 > Date: Fri, 12 Jul 2013 11:04:04 +0200 > From: Matthias Apitz > To: freebsd-questions@freebsd.org > Subject: sed Guru wanted > > > Hello, > > I can delete in a text file with > > sed &#x

sed Guru wanted

2013-07-12 Thread Matthias Apitz
Hello, I can delete in a text file with sed '/pattern1/,/pattern2/d' < file all lines between the lines with the given patterns, including themself also; how could I specify that the deletion should exclude the line with /pattern1/, i.e. the addr is something like /pattern1/+1 ? Thx