4 ms·
> you should definitely check the output before overwriting stuff That wouldn't really help in the case of redirecting sed to the same file. $ echo "a" >
by ramshorns 9y ago
> you should definitely check the output before overwriting stuff
That wouldn't really help in the case of redirecting sed to the same file.
$ echo "a" > test.txt
$ sed s/a/b/ test.txt
b
$ sed s/a/b/ test.txt > test.txt
$ cat test.txt
$
- contingencies 9y agoIndeed. Use >> in preference to > at all times ;)