Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jul 2013 11:04:04 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-questions@freebsd.org
Subject:   sed Guru wanted
Message-ID:  <20130712090404.GA9263@sh4-5.1blu.de>

next in thread | raw e-mail | index | archive | help

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

	matthias
-- 
Matthias Apitz               |  /"\ ASCII Ribbon Campaign: www.asciiribbon.org
E-mail: guru@unixarea.de     |  \ / - No HTML/RTF in E-mail
WWW: http://www.unixarea.de/ |   X  - No proprietary attachments
phone: +49-170-4527211       |  / \ - Respect for open standards



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130712090404.GA9263>