|
From: | Pádraig Brady |
Subject: | Re: [PATCH] tee: Add -q, --quiet option to not write to stdout |
Date: | Thu, 21 Jan 2021 15:11:48 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Thunderbird/84.0 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |