Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > gnu.utils.bug > #2284

Sed --in-place creates new file

From Jérémy Amiot <jeremy.amiot@gmail.com>
Newsgroups gnu.utils.bug
Subject Sed --in-place creates new file
Date 2020-04-05 11:57 +0200
Message-ID <mailman.179.1586093852.2644.bug-gnu-utils@gnu.org> (permalink)
References <CAMb0_rqGcbU74zHa1my0jC9q4mTzEDB=FQ=qYZRtukSL=xy=FA@mail.gmail.com>

Show all headers | View raw


Hi,

Using sed for windows version 4..2.1 (url :
http://gnuwin32.sourceforge.net/packages/sed.htm)

sed -i "s/to/ti/" test.txt will modify test.txt (ok) but will create a
new file "sedGnChQb"
sed -i"" "s/to/ti/" test.txt  does the same new file

How to avoid sed to create a new file ?

Thanks a lot.

Back to gnu.utils.bug | Previous | Next | Find similar


Thread

Sed --in-place creates new file Jérémy Amiot <jeremy.amiot@gmail.com> - 2020-04-05 11:57 +0200

csiph-web