mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-07 07:55:56 +02:00
tee: add tee /dev/tty
mid-pipeline example (#2343)
This commit is contained in:
parent
db07cf1d52
commit
eb00419cdc
1 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,10 @@
|
||||||
|
|
||||||
`echo "example" | tee -a {{FILE}}`
|
`echo "example" | tee -a {{FILE}}`
|
||||||
|
|
||||||
|
- Print standard input to the terminal, and also pipe it into another program for further processing:
|
||||||
|
|
||||||
|
`echo "example" | tee {{/dev/tty}} | {{xargs printf "[%s]"}}`
|
||||||
|
|
||||||
- Create a folder called "example", count the number of characters in "example" and write "example" to the terminal:
|
- 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)`
|
`echo "example" | tee >(xargs mkdir) >(wc -c)`
|
||||||
|
|
Loading…
Add table
Reference in a new issue