Cheatography
https://cheatography.com
Quick Example Commands From Manual
Example Commands
Compress all *.html files in parallel |
parallel gzip --best ::: *.html
|
Convert (via lame ) all *.wav files to *.mp3 |
parallel lame {} -o {.}.mp3 ::: *.wav
|
Delete pict{0..9999}.jpg files in parallel |
seq -w 0 9999 | parallel rm pict{}.jpg # Runs rm 10,000 Times seq -w 0 9999 | parallel -X rm pict{}.jpg # Runs rm minimal times
|
|
|
Command Synopsis
parallel [options] [command [arguments]] < list_of_arguments
parallel [options] [command [arguments]] ( ::: arguments | :::: argfile(s) ) ...
parallel --semaphore [options] command
#!/usr/bin/parallel --shebang [options] [command [arguments]] |
Input Lines
|
Unaltered input line (foo/bar.jpg) |
|
Remove extension: foo/bar |
|
Basename: bar.jpg |
|
Dirname: foo/ |
|
Basename w/o ext: bar |
|
Sequence Number of Job |
|
Job Slot Number |
|
Argument from input source n or the n'th argument. |
|
|
|
Other Combo's Available |
|
$_ with = {}, $_ is output after eval. |
|
Created By
www.clintpriest.com
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by cpriest