1
0
mirror of https://github.com/cheat/cheat.git synced 2025-05-28 10:57:06 +02:00

Merge pull request 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

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