tee: Add usecase for process substitution (#1584)

coverage
Starbeamrainbowlabs 2017-10-29 13:08:38 +00:00 committed by GitHub
commit af87618913
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

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", count the number of characters in "example" and write "example" to the terminal:
`echo "example" | tee >(xargs mkdir) >(wc -c)`