[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Blank lines
From: |
Kaye Odedina |
Subject: |
Blank lines |
Date: |
Sun, 23 Jun 2002 09:05:28 +0000 |
GNU sed version 3.02
Copyright (C) 1998 Free Software Foundation, Inc.
Possible Bug
While trying to perform this task "Exchange the line containing Paco with
the line containing Vinh" , I came across this error.
The solution should be "sed -e '/Vinh/h' -e '/Paco/x' datebook"
Datebook is the filename.
Paco is on the 13th line and Vinh is on the 27th line of datebook.
Every time I run the sed command above, I get a blank line on line 13, with
every other line printing okay.
Basically trying to replace line 13 with line 27 you get a blank line for
line 13; but replacing line 27 with line 13 works ok
i.e "sed -e '/Paco/h' -e '/Vinh/x' datebook"
I have tried replacing all lines with line below them, I still get a blank
line; but it works replacing or exchanging bottom lines with top lines .
I hope you understand my explanation.
kind regards
Mr. Kaye Odedina
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
- Blank lines,
Kaye Odedina <=