2 ms·
Barely even a shell script; you could do it in a one-liner. Let's say you had 16000 images and 16 cores, $ cat filelist.txt|xargs -n 1000 -P 16 ./myconvert
by gaius 16y ago
Barely even a shell script; you could do it in a one-liner. Let's say you had 16000 images and 16 cores,
$ cat filelist.txt|xargs -n 1000 -P 16 ./myconvertprog
I do "batch" compression like this all the time.
- mleonhard 16y agoThanks for pointing out the '-P' argument for xargs!