Merge pull request #398 from ticky/patch-1

Add `tee /dev/tty` mid-pipeline example to tee
This commit is contained in:
Chris Allen Lane 2018-10-09 11:22:43 -04:00 committed by GitHub
commit 66ebae4ed5
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"