emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#30336: closed (sed)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#30336: closed (sed)
Date: Mon, 05 Feb 2018 01:18:02 +0000

Your message dated Sun, 4 Feb 2018 18:17:13 -0700
with message-id <address@hidden>
and subject line Re: bug#30336: sed
has caused the debbugs.gnu.org bug report #30336,
regarding sed
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
30336: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=30336
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 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




--- End Message ---
--- Begin Message --- Subject: Re: bug#30336: sed Date: Sun, 4 Feb 2018 18:17:13 -0700 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0
On 2018-02-03 12:24 PM, Assaf Gordon wrote:
On 2018-02-03 09:11 AM, Roger Adair wrote:
when I execute the following command:

$ sed 's/c$/7/g' test.data.asc
[...]
My immediate guess would be that the file has dos/mac line endings
(e.g. CRLF "\r\n" instead of just line-feed "\n").


Confirmed off-list this is the issue - I'm thus closing this bug.

regards,
 - assaf



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]