2009-11-10 14:14:15 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Test -I
|
2010-09-21 20:00:30 +00:00
|
|
|
seq 1 10 | parallel -k 'seq 1 {} | parallel -k -I :: echo {} ::'
|
2009-11-10 14:14:15 +00:00
|
|
|
|
2011-01-17 12:38:58 +00:00
|
|
|
seq 1 10 | parallel -k 'seq 1 {} | parallel -j1 -X -k -I :: echo a{} b::'
|
2009-11-10 14:14:15 +00:00
|
|
|
|
2011-01-17 12:38:58 +00:00
|
|
|
seq 1 10 | parallel -k 'seq 1 {} | parallel -j1 -m -k -I :: echo a{} b::'
|
2009-11-10 14:14:15 +00:00
|
|
|
|
2011-01-17 12:38:58 +00:00
|
|
|
seq 1 60000 | parallel -I :: -m -j1 echo a::b::c | \
|
2010-04-18 14:18:31 +00:00
|
|
|
mop -q "|sort |md5sum" :par
|
|
|
|
CHAR=$(cat ~/.mop/:par | wc -c)
|
|
|
|
LINES=$(cat ~/.mop/:par | wc -l)
|
2010-04-13 20:59:39 +00:00
|
|
|
echo -n "Chars per line ($CHAR/$LINES): "
|
2009-11-10 14:14:15 +00:00
|
|
|
echo "$CHAR/$LINES" | bc
|
|
|
|
|
2011-01-17 12:38:58 +00:00
|
|
|
seq 1 60000 | parallel -I :: -X -j1 echo a::b::c | \
|
2010-04-18 14:18:31 +00:00
|
|
|
mop -q "|sort |md5sum" :par
|
|
|
|
CHAR=$(cat ~/.mop/:par | wc -c)
|
|
|
|
LINES=$(cat ~/.mop/:par | wc -l)
|
2010-04-13 20:59:39 +00:00
|
|
|
echo -n "Chars per line ($CHAR/$LINES): "
|
2009-11-10 14:14:15 +00:00
|
|
|
echo "$CHAR/$LINES" | bc
|