sed Guru wanted

Matthias Apitz guru at
Fri Jul 12 10:13:14 UTC 2013


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 ?


Matthias Apitz               |  /"\ ASCII Ribbon Campaign:
E-mail: guru at     |  \ / - No HTML/RTF in E-mail
WWW: |   X  - No proprietary attachments
phone: +49-170-4527211       |  / \ - Respect for open standards

More information about the freebsd-questions mailing list