Pipe to multiple files, but not stdout Pipe to multiple files, but not stdout bash bash

Pipe to multiple files, but not stdout


You can simply use:

echo 'hello world' | tee aa bb > cc 


You can also close tee stdout output by writing to /dev/full

echo 'hello world' | tee aa bb cc >/dev/full

or by closing stdout.

echo 'hello world' | tee aa bb cc >&-

Be however aware that you will get either tee: standard output: No space left on device or tee: standard output: Bad file descriptor warnings.