mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 22:17:54 +00:00
3fa2a4a8d4
Prepared for name change to 'par'
17 lines
314 B
Bash
17 lines
314 B
Bash
#!/bin/bash
|
|
|
|
PAR=parallel
|
|
|
|
rm -rf tmp 2>/dev/null
|
|
cp -a input-files/testdir2 tmp
|
|
cd tmp
|
|
|
|
# tests if -c (cat | sh) works
|
|
perl -e 'for(1..25) {print "echo a $_; echo b $_\n"}' | $PAR -c 2>&1 | sort
|
|
|
|
# tests if -f (xargs) works
|
|
perl -e 'for(1..25) {print "a $_\nb $_\n"}' | $PAR -f echo 2>&1 | sort
|
|
|
|
cd ..
|
|
rm -rf tmp
|