tee: Add usecase for process substitution

This commit is contained in:
Polle Vanhoof 2017-10-26 16:25:39 +02:00 committed by GitHub
parent 1c86634691
commit 90f25a7e62

View File

@ -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}}`