2 ms·
for no additional output, sponge over tee! sponge is useful in some cases where redirecting output is annoying, and it can construct pipelines reading/writing f
by alexeldeib 5y ago
for no additional output, sponge over tee! sponge is useful in some cases where redirecting output is annoying, and it can construct pipelines reading/writing from the same file.
Found that one way later than I'd care to admit. I use tee $FILE > /dev/null <EOF quite often in some situations where redirects get ugly, and sponge is a nice util to tidy up the invocation.