Update cheatsheets

This commit is contained in:
ivuorinen
2025-10-15 00:19:37 +00:00
parent 220486abce
commit d5421f7c01
42 changed files with 459 additions and 43 deletions

View File

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