I'm using Window 7.
sed -V
gives me
GNU sed version 3.02
I have a text file with:
foo bar
In command line if I write:
sed s/foo/tofu/ test.txt
I get printed on stdout;
tofu bar
However, I want to edit this file inplace, so using the -i
option:
sed -i s/foo/tofu/ test.txt
gives me sed: invalid option -- i
What am I missing?