(lots of Cc's removed)
* Alejandro Colomar <[email protected]> [2021-01-22 00:12:58 +0100]:
This is useful for using tee to just write to a file,
at the end of a pipeline,
without having to redirect to /dev/null.
Example:
echo 'foo' | sudo tee -q /etc/foo;
is equivalent to the old (and ugly)
echo 'foo' | sudo tee /etc/foo >/dev/null;
Tools with a similar interface: grep
[...]
It doesn't make sense to add something like -q/--quiet/--silent to
every single program, when equivalent behavior can be obtained at
the shell level.
See: http://harmful.cat-v.org/cat-v/unix_prog_design.pdf