parallel/unittest/tests-to-run/test08.sh
Ole Tange 8202ef3a11 Prepared for limiting to max proc (not only files)
This still does not work if -j 0 and #files_available > 2*#procs_available
So it fails one unittest
2009-02-18 02:57:38 +01:00

11 lines
253 B
Bash

#!/bin/bash
cd input-files/test08
ls | parallel -q perl -ne '/_PRE (\d+)/ and $p=$1; /hatchname> (\d+)/ and $1!=$p and print $ARGV,"\n"'
seq 1 10 | parallel -j 1 echo | sort
seq 1 10 | parallel -j 2 echo | sort
seq 1 10 | parallel -j 3 echo | sort