On 21/01/2021 13:17, Alejandro Colomar wrote:
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;

This was discussed last month:
https://lists.gnu.org/archive/html/coreutils/2020-12/msg00037.html

thanks,
Pádraig

Reply via email to