Re:Moreutils – Unix tools that nobody thought to write (2012)
by bewuethr on Saturday August 22, 2020 @01:46PM
(#24245774)
According to Stack Overflow [1], this works:
[1]: https://stackoverflow.com/a/22084103/3266847
[ Parent
| on HN ]
Re:Moreutils – Unix tools that nobody thought to write (2012)
by gpanders on Saturday August 22, 2020 @02:03PM
(#24245928)
That works when specifying a backup extension, but not if you don’t want to create a backup file.
sed -i ‘’ ...
works on BSD sed but not GNU. Meanwhile: sed -i’’ ...
sed -i ...
both work on GNU but not BSD.