mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-04 07:55:28 +00:00
Update cheatsheets
This commit is contained in:
@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Read from a specific coprocess `stdout`:
|
||||
|
||||
`read {{variable}} <&"${{{name[0]}}}"`
|
||||
`read <&"${{{name[0]}}}" {{variable}}`
|
||||
|
||||
- Create a coprocess which repeatedly reads `stdin` and runs some commands on the input:
|
||||
|
||||
@@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create and use a coprocess running `bc`:
|
||||
|
||||
`coproc BC { bc --mathlib; }; echo "1/3" >&"${BC[1]}"; read output <&"${BC[0]}"; echo "$output"`
|
||||
`coproc BC { bc --mathlib; }; echo "1/3" >&"${BC[1]}"; read <&"${BC[0]}" output; echo "$output"`
|
||||
|
||||
Reference in New Issue
Block a user