GNU bug report logs - #49092
Bug/Limitation of sed

Previous Next

Package: sed;

Reported by: Alice Golakiya <golakiyaalice <at> gmail.com>

Date: Fri, 18 Jun 2021 15:18:02 UTC

Severity: normal

Full log


Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Alice Golakiya <golakiyaalice <at> gmail.com>
To: bug-sed <at> gnu.org
Subject: Re: Bug/Limitation of sed
Date: Fri, 18 Jun 2021 11:45:35 +0530
[Message part 1 (text/plain, inline)]
Hi ,

└─$ sed --version
sed (GNU sed) 4.7

file "hosts":
ip1 == 10.0.0.1
ip2 == 10.0.0.100

command executed:
sudo -i sed -i 's/10.0.0.1/10.0.0.200/g' hosts

Output file :
ip1 == 10.0.0.200
ip2 == 10.0.0.20000

The change in ip2 is not expected and an invalid.

On Fri, 18 Jun 2021 at 11:41, Alice Golakiya <golakiyaalice <at> gmail.com>
wrote:

> Hi ,
>
> └─$ sed --version
> sed (GNU sed) 4.7
>
> file hosts:
> ip1 == 10.0.0.1
> ip2 == 10.0.0.100
>
[Message part 2 (text/html, inline)]

This bug report was last modified 3 years and 363 days ago.

Previous Next


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