parallel Command Examples

Run commands on multiple CPU cores. More information: https://www.gnu.org/software/parallel.

parallel gzip ::: {{path/to/file1 path/to/file2 ...}}

ls *.txt | parallel -j4 gzip

parallel convert {} {.}.png ::: *.jpg

{{args}} | parallel -X {{command}}

cat {{big_file.txt}} | parallel --pipe --block 1M {{command}}

parallel -S {{machine1}},{{machine2}} {{command}} ::: {{arg1}} {{arg2}}

parallel -j4 --bar --eta wget -q {} :::: {{path/to/links.txt}}

parallel -t {{command}} ::: {{args}}