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 $
That wouldn't really help in the case of redirecting sed to the same file.