mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-25 07:27:55 +00:00
3fa2a4a8d4
Prepared for name change to 'par'
16 lines
266 B
Bash
16 lines
266 B
Bash
#!/bin/bash
|
|
|
|
PAR=parallel
|
|
|
|
rm -rf tmp 2>/dev/null
|
|
cp -a input-files/testdir2 tmp
|
|
cd tmp
|
|
|
|
find . -name '*.jpg' | $PAR -j +0 convert -geometry 120 {} {}_thumb.jpg
|
|
find . -name '*_thumb.jpg' | ren 's:/([^/]+)_thumb.jpg$:/thumb_$1:'
|
|
|
|
find |grep -v CVS
|
|
|
|
cd ..
|
|
rm -rf tmp
|