Hacker News new | ask | show | jobs
by ayosec 2658 days ago
sponge[1] is very useful in this scenario. The output file is written only when the `thing | thing | thing` finishes successfully.

[1]: https://linux.die.net/man/1/sponge