mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-12-23 13:17:54 +00:00
17 lines
628 B
Bash
17 lines
628 B
Bash
#!/bin/bash
|
|
|
|
# -L1 will join lines ending in ' '
|
|
cat <<'EOF' | sed -e s/\$SERVER1/$SERVER1/\;s/\$SERVER2/$SERVER2/ | parallel -j10 -k -L1
|
|
echo '### Test --timeout';
|
|
parallel -j0 -k --timeout 1 echo {}\; sleep {}\; echo {} ::: 1.1 2.2 3.3 4.4
|
|
EOF
|
|
|
|
echo '### Test --shellquote'
|
|
cat <<'_EOF' | parallel --shellquote
|
|
awk -v FS="\",\"" '{print $1, $3, $4, $5, $9, $14}' | grep -v "#" | sed -e '1d' -e 's/\"//g' -e 's/\/\/\//\t/g' | cut -f1-6,11 | sed -e 's/\/\//\t/g' -e 's/ /\t/g
|
|
_EOF
|
|
|
|
echo '### Test make .deb package'
|
|
cd ~/privat/parallel/packager/debian
|
|
stdout make | grep 'To install the GNU Parallel Debian package, run:'
|