News for hackers. Stuff that matters.
Re:Moreutils – Unix tools that nobody thought to write (2012) by jleahy on Saturday August 22, 2020 @06:23AM (#24243135)
Imo sponge is the most useful of all of them. For example if you want to filter a file in place you can do ‘grep str file | sponge file’. If you do that with a redirect you’ll end up with an empty file.

Some commands (eg. sed) have an in-place option, but many don’t.

There are no comments on this comment yet.