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
|
|
|
|
2010-09-21 20:00:30 +00:00
|
|
|
seq 1 10 | parallel -k 'seq 1 {} | parallel -X -k -I :: echo a{} b::'
|
2009-11-10 14:14:15 +00:00
|
|
|
|
2010-09-21 20:00:30 +00:00
|
|
|
seq 1 10 | parallel -k 'seq 1 {} | parallel -m -k -I :: echo a{} b::'
|
2009-11-10 14:14:15 +00:00
|
|
|
|
2010-09-21 20:00:30 +00:00
|
|
|
seq 1 60000 | parallel -I :: -m 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
|
|
|
|
|
2010-09-21 20:00:30 +00:00
|
|
|
seq 1 60000 | parallel -I :: -X 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
|