|
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 |
{} |
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
|
{n} |
Argument from input source n or the n'th argument.
|
{n.} |
Combo of
{n} and{.}. |
{n/}, {n//}, {n/.} |
Other Combo's Available
|
{=perl expression=} |
$_ with = {}, $_ is output after eval.
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.