Ung, I wish had some sort of "redirect the stdout of a process to this file, but only if the process exits successfully'

(`sponge(1)` is a useful tool here..)


I suppose "mktemp blah / command > tempfile / mv tempfile dest file" is as good as I'll get...

Β· Β· 0 Β· 0 Β· 0
Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!