mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-09 09:15:47 +02:00
tee: Add usecase for process substitution
This commit is contained in:
parent
1c86634691
commit
90f25a7e62
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
# tee
|
# 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:
|
- Copy standard input to each FILE, and also to standard output:
|
||||||
|
|
||||||
|
@ -9,3 +9,7 @@
|
||||||
- Append to the given FILEs, do not overwrite:
|
- Append to the given FILEs, do not overwrite:
|
||||||
|
|
||||||
`echo "example" | tee -a {{FILE}}`
|
`echo "example" | tee -a {{FILE}}`
|
||||||
|
|
||||||
|
- Create a folder called "example", print "example" and write "example" to FILE:
|
||||||
|
|
||||||
|
`echo "example" | tee >(xargs mkdir) >(cat) >{{FILE}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue