Hi Alejandro, On 1/21/21 2:17 PM, 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/nullExample: echo 'foo' | sudo tee -q /etc/foo; is equivalent to the old (and ugly) echo 'foo' | sudo tee /etc/foo >/dev/null;
What's bad with echo foo | sudo sh -c "cat > /etc/foo" ? regards, chris