2007-09-10 20:28:03 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2010-04-13 21:44:02 +00:00
|
|
|
rsync -Ha --delete input-files/testdir/ tmp/
|
2007-09-10 20:28:03 +00:00
|
|
|
cd tmp
|
|
|
|
|
2010-10-26 23:50:58 +00:00
|
|
|
echo echo test of cat pipe sh | parallel -j 50 2>&1
|
|
|
|
find . -name '*.jpg' | parallel -j +0 convert -geometry 120 {} {}_thumb.jpg
|
2007-09-10 20:28:03 +00:00
|
|
|
find . -name '*_thumb.jpg' | ren 's:/([^/]+)_thumb.jpg$:/thumb_$1:'
|
|
|
|
|
2010-10-26 23:50:58 +00:00
|
|
|
ls | parallel ls | sort
|
|
|
|
ls | parallel echo ls | sort
|
|
|
|
ls | parallel -j 1 echo ls | sort
|
|
|
|
find -type f | parallel diff {} a/foo ">"{}.diff | sort
|
2012-01-08 18:52:00 +00:00
|
|
|
ls | parallel -v --group "ls {}|wc;echo {}" | sort
|
2010-06-12 23:24:25 +00:00
|
|
|
echo '### Check that we can have more input than max procs (-j 0)'
|
2010-10-26 23:50:58 +00:00
|
|
|
perl -e 'print map {"more_than_5000-$_\n" } (4000..9999)' | parallel -vj 0 touch | sort | tail
|
|
|
|
perl -e 'print map {"more_than_5000-$_\n" } (4000..9900)' | parallel -j 0 rm | sort
|
|
|
|
ls | parallel -j500 'sleep 1; find {} -type f | perl -ne "END{print $..\" {}\n\"}"' | sort
|
2012-01-08 18:52:00 +00:00
|
|
|
ls | parallel --group -j500 'sleep 1; find {} -type f | perl -ne "END{print $..\" {}\n\"}"' | sort
|
|
|
|
find . -type f | parallel --group "perl -ne '/^\\S+\\s+\\S+$/ and print \$ARGV,\"\\n\"'" | sort
|
|
|
|
find . -type f | parallel -v --group "perl -ne '/^\\S+\\s+\\S+$/ and print \$ARGV,\"\\n\"'" | sort
|
|
|
|
find . -type f | parallel -q --group perl -ne '/^\S+\s+\S+$/ and print $ARGV,"\n"' | sort
|
|
|
|
find . -type f | parallel -qv --group perl -ne '/^\S+\s+\S+$/ and print $ARGV,"\n"' | sort
|
2007-09-10 20:28:03 +00:00
|
|
|
|
|
|
|
cd ..
|
|
|
|
rm -rf tmp
|