Add `tee /dev/tty` mid-pipeline example to tee

This commit is contained in:
Jessica Stokes 2018-09-19 17:53:19 -07:00 committed by GitHub
parent 03fb44159a
commit cd46559250
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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"