tee
Read from standard input and write to standard output and files
Shell
echo "example" | tee ~/example.txt | cat
The above will create example.txt
with the content example
and print example
due to the usage of cat
.
Read from standard input and write to standard output and files
echo "example" | tee ~/example.txt | cat
The above will create example.txt
with the content example
and print example
due to the usage of cat
.