sed question

Karl Auer kauer at biplane.com.au
Thu May 20 22:37:48 UTC 2010


On Mon, 2010-05-10 at 10:25 +0200, Amedee Van Gasse wrote:
> The problem must be with sed, because if I change (add or remove) sed
> statements, it stops at other lines.

The fact that you are missing the last line is suspicious.

First remove everything up to the grep, to make sure you are correctly
selecting all the lines you need.

Then add a simple sed that just replaces (say) the first character with
an "X", and make sure you still see all lines.

If you are definitely processing all input lines, then work on the more
complicated sed commands.

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)                   +61-2-64957160 (h)
http://www.biplane.com.au/~kauer/                  +61-428-957160 (mob)

GPG fingerprint: B386 7819 B227 2961 8301 C5A9 2EBC 754B CD97 0156
Old fingerprint: 07F3 1DF9 9D45 8BCD 7DD5 00CE 4A44 6A03 F43A 7DEF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100521/7c75cef6/attachment.sig>


More information about the ubuntu-users mailing list