2009-02-18 04:35:09 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# This causes problems if we kill child processes
|
|
|
|
seq 1 40 | parallel -j 0 seq 1 10 | sort |md5sum
|
|
|
|
seq 1 40 | parallel -j 0 seq 1 10 '| parallel -j 3 echo' | sort |md5sum
|
2009-02-18 06:28:00 +00:00
|
|
|
|
|
|
|
# Test of xargs
|
2010-02-03 15:32:36 +00:00
|
|
|
seq 1 60000 | parallel -m echo | mop -d 4 "|sort |md5sum" "| wc"
|
|
|
|
(echo foo;echo bar) | parallel -m echo 1{}2{}3 A{}B{}C
|
2009-03-16 07:58:39 +00:00
|
|
|
(echo foo;echo bar) | parallel -X echo 1{}2{}3 A{}B{}C
|
2010-02-03 15:32:36 +00:00
|
|
|
seq 1 60000 | parallel -m echo a{}b{}c | mop -d 4 "|sort |md5sum" "| wc"
|
|
|
|
seq 1 60000 | parallel -m echo a{}b{}c | \
|
2009-03-16 07:58:39 +00:00
|
|
|
mop -q "|sort |md5sum" :parallel
|
|
|
|
echo -n "Chars per line: "
|
|
|
|
CHAR=$(cat ~/.mop/:parallel | wc -c)
|
|
|
|
LINES=$(cat ~/.mop/:parallel | wc -l)
|
|
|
|
echo "$CHAR/$LINES" | bc
|
2009-08-26 12:33:14 +00:00
|
|
|
|
|
|
|
# Bug before 2009-08-26 causing regexp compile error or infinite loop
|
|
|
|
echo a | parallel -qX echo "'"{}"' "
|
|
|
|
echo a | parallel -qX echo "'{}'"
|