bug-sed
[Top][All Lists]
Advanced

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

bug#50361: Error in first example in documentation


From: Robert Spanjaard
Subject: bug#50361: Error in first example in documentation
Date: Fri, 3 Sep 2021 20:26:19 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

On this website...

https://www.gnu.org/software/sed/manual/sed.html#Invoking-sed

In 2.1, the very first example in the documentation states that...

        sed 's/hello/world/' input.txt > output.txt

... replaces ALL occurences of 'hello' to 'world in input.txt.

But the g flag is missing. The provided command only replaces the FIRST occurence.

--
Kind regards,

Robert Spanjaard





reply via email to

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