bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sed: delete a line and there goes the neighborhood at least for i and a


From: Dan Jacobson
Subject: sed: delete a line and there goes the neighborhood at least for i and a
Date: 10 Mar 2002 05:58:16 +0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

Sorry.  We've been thru this before, but I still find it so illogical
that any line barely near a line that has been deleted is then
unusable thru the rest of the sed program.

script contents ----:
sed '
1d
1a\
hello
'<<!
1
2
3
!
result ----:
2
3
script contents ----:
sed '
1d
0a\
hello
'<<!
1
2
3
!
result ----:
2
3
script contents ----:
sed '
1d
0i\
hello
'<<!
1
2
3
!
result ----:
2
3

GNU sed version 3.02
-- 
http://www.geocities.com/jidanni/ Taiwan(04)25854780



reply via email to

[Prev in Thread] Current Thread [Next in Thread]