[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#30336: sed
From: |
Roger Adair |
Subject: |
bug#30336: sed |
Date: |
Sat, 3 Feb 2018 13:11:04 -0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 |
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
- bug#30336: sed,
Roger Adair <=