diff --git a/pages/common/tee.md b/pages/common/tee.md index bc9070a12..39a5a41b0 100644 --- a/pages/common/tee.md +++ b/pages/common/tee.md @@ -1,6 +1,6 @@ # tee -> Read from standard input and write to standard output and files. +> Read from standard input and write to standard output and files (or commands). - Copy standard input to each FILE, and also to standard output: @@ -9,3 +9,7 @@ - Append to the given FILEs, do not overwrite: `echo "example" | tee -a {{FILE}}` + +- Create a folder called "example", print "example" and write "example" to FILE: + +`echo "example" | tee >(xargs mkdir) >(cat) >{{FILE}}`