mirror of
https://github.com/cheat/cheat.git
synced 2024-12-18 10:45:05 +01:00
Add tee /dev/tty
mid-pipeline example to tee
This commit is contained in:
parent
03fb44159a
commit
cd46559250
@ -3,3 +3,6 @@ ls | tee outfile.txt
|
||||
|
||||
# To tee stdout and append to a file:
|
||||
ls | tee -a outfile.txt
|
||||
|
||||
# To tee stdout to the terminal, and also pipe it into another program for further processing:
|
||||
ls | tee /dev/tty | xargs printf "\033[1;34m%s\033[m\n"
|
||||
|
Loading…
Reference in New Issue
Block a user