Update cheatsheets

This commit is contained in:
ivuorinen
2025-04-23 00:19:06 +00:00
parent 8ba6f7fc9e
commit 94c28849c9
382 changed files with 1183 additions and 1056 deletions

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Read arguments from `stdin`, run 4 jobs at once:
`ls *.txt | parallel -j4 gzip`
`ls *.txt | parallel {{[-j|--jobs]}} 4 gzip`
- Convert JPEG images to PNG using replacement strings:
@@ -30,11 +30,11 @@ source: https://github.com/tldr-pages/tldr.git
- Run on multiple machines via SSH:
`parallel -S {{machine1}},{{machine2}} {{command}} ::: {{arg1}} {{arg2}}`
`parallel {{[-S|--sshlogin]}} {{machine1}},{{machine2}} {{command}} ::: {{arg1}} {{arg2}}`
- Download 4 files simultaneously from a text file containing links showing progress:
`parallel -j4 --bar --eta wget {{[-q|--quote]}} {} :::: {{path/to/links.txt}}`
`parallel {{[-j|--jobs]}} 4 --bar --eta wget {{[-q|--quote]}} {} :::: {{path/to/links.txt}}`
- Print the jobs which `parallel` is running in `stderr`: