parallel/unittest/tests-to-run/test13.sh
Ole Tange 2d930320ad Added -k: Keep sequence of output same as the order of input.
If jobs 1 2 3 4 end in the sequence 3 1 4 2 the output will still be 1 2 3 4.
2009-09-04 07:23:57 +02:00

7 lines
151 B
Bash

#!/bin/bash
# Test -k
ulimit -n 50
(echo "sleep 3; echo begin"; seq 1 30 | parallel -kq echo "sleep 1; echo {}"; echo "echo end") \
| parallel -k -j0