mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 05:57:54 +00:00
001d9d0f66
parallel: 'true | parallel --shuf echo' fixed. testsuite: Updates due to Ubuntu 18.04. parallel: Fixed bug #54869: Long lines break.
31 lines
1.6 KiB
Bash
Executable file
31 lines
1.6 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
TMP=/run/shm/parallel_$$
|
|
|
|
rsync -Ha --delete input-files/testdir/ $TMP/
|
|
cd $TMP/
|
|
|
|
echo echo test of cat pipe sh | parallel -j 50 2>&1
|
|
find . -name '*.jpg' | parallel -j +0 convert -geometry 120 {} {//}/thumb_{/}
|
|
|
|
ls | parallel ls | LC_ALL=C sort
|
|
ls | parallel echo ls | LC_ALL=C sort
|
|
ls | parallel -j 1 echo ls | LC_ALL=C sort
|
|
find -type f | parallel diff {} a/foo ">"{}.diff | LC_ALL=C sort
|
|
ls | parallel -v --group "ls {}|wc;echo {}" | LC_ALL=C sort
|
|
echo '### Check that we can have more input than max procs (-j 0) - touch'
|
|
perl -e 'print map {"more_than_5000-$_\n" } (4000..9999)' | parallel -vj 0 touch | LC_ALL=C sort | tail
|
|
echo '### rm'
|
|
perl -e 'print map {"more_than_5000-$_\n" } (4000..9900)' | parallel -j 0 rm | LC_ALL=C sort
|
|
cat <<'EOF' | sed -e 's/;$/; /;s/$SERVER1/'$SERVER1'/;s/$SERVER2/'$SERVER2'/' | stdout parallel -vj0 -k --joblog /tmp/jl-`basename $0` -L1 | egrep -v 'parallel: Warning: Starting|parallel: Warning: Consider'
|
|
ls | parallel -j500 'sleep 1; find {} -type f | perl -ne "END{print $..\" "{=$_=pQ($_)=}"\n\"}"' | LC_ALL=C sort
|
|
ls | parallel --group -j500 'sleep 1; find {} -type f | perl -ne "END{print $..\" "{=$_=pQ($_)=}"\n\"}"' | LC_ALL=C sort
|
|
find . -type f | parallel --group "perl -ne '/^\\S+\\s+\\S+$/ and print \$ARGV,\"\\n\"'" | LC_ALL=C sort
|
|
find . -type f | parallel -v --group "perl -ne '/^\\S+\\s+\\S+$/ and print \$ARGV,\"\\n\"'" | LC_ALL=C sort
|
|
find . -type f | parallel -q --group perl -ne '/^\S+\s+\S+$/ and print $ARGV,"\n"' | LC_ALL=C sort
|
|
find . -type f | parallel -qv --group perl -ne '/^\S+\s+\S+$/ and print $ARGV,"\n"' | LC_ALL=C sort
|
|
EOF
|
|
|
|
cd - >/dev/null
|
|
rm -rf $TMP/
|