Subject: sed
From: Roger Adair <[email-masked]>
To: [email-masked]
Date: Sat, 3 Feb 2018 13:11:04 -0300
List-Id: <debbugs-submit.debbugs.gnu.org>

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