mirror of https://github.com/cheat/cheat.git
Merge pull request #398 from ticky/patch-1
Add `tee /dev/tty` mid-pipeline example to tee
This commit is contained in:
commit
66ebae4ed5
|
@ -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