mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-06 13:56:52 +00:00
Update cheatsheets
This commit is contained in:
@@ -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`:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user