#!/bin/bash mkdir -p ~/STAR/STAR_results/ declare -a project project[1]="ALL"; project[2]="flight2"; project[3]="ground2"; project[4]="OSP3"; project[5]="OSP4"; declare -a policy policy[1]="strategic"; policy[2]="tactical"; policy[3]="all"; declare -a strat strat[1]=""; strat[2]="-st archriskresl"; strat[3]="-st improvepcap"; strat[4]="-st improvepmat"; strat[5]="-st improveprecflex"; strat[6]="-st improveteam"; strat[7]="-st improvetooltechplat"; strat[8]="-st reducefunc"; strat[9]="-st reducequality"; strat[10]="-st relaxschedule"; con=1; for i in `seq 1 10`; do echo "RUN #" $i for pro in `seq 1 5`; do for pol in `seq 1 3` do for st in `seq 1 10`; do run="STAR -ex -f ${project[pro]} -pol ${policy[pol]} ${strat[st]} -run $i"; echo $run; if [ $con -eq 1 ]; then con=0; $run & else con=1; $run fi done done done done