GNU bug report logs - #30336
sed

Previous Next

Package: sed;

Reported by: Roger Adair <adair <at> adinet.com.uy>

Date: Sat, 3 Feb 2018 17:30:01 UTC

Severity: normal

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Roger Adair <adair <at> adinet.com.uy>
To: 30336 <at> debbugs.gnu.org
Subject: bug#30336: sed
Date: Sat, 3 Feb 2018 13:11:04 -0300
Hi,

I'm using Linux Mint 18.3 with sed version

sed (GNU sed) 4.2.2

when I execute the following command:

$ sed 's/c$/7/g' test.data.asc

where the contents of test.data.asc is:

abc  abc
123456

I get the following output:

abc  abc
123456

Whereas I would expect the following:

abc  ab7
123456

If I leave the $ out of the command "ab7 ab7" appears.

What am I doing wrong?  Many thanks for reading my email.

Roger





This bug report was last modified 7 years and 107 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.