Created
May 6, 2018 22:31
-
-
Save geeknik/d1899687e9cef690bfdb459c5c984346 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cores=$1 | |
inputdir=$2 | |
outputdir=$3 | |
pids="" | |
total=`ls $inputdir | wc -l` | |
for k in `seq 1 $cores $total` | |
do | |
for i in `seq 0 $(expr $cores - 1)` | |
do | |
file=`ls -Sr $inputdir | sed $(expr $i + $k)"q;d"` | |
afl-tmin -i $inputdir/$file -o $outputdir/$file -- & #put the command to run after the -- | |
done | |
wait | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment