#!/bin/bash mkdir -p ~/STAR/STAR_results/ declare -a project project[1]="NowS"; project[2]="NowM"; project[3]="NowL"; project[4]="Now10S"; project[5]="Now10M"; project[6]="Now10L"; project[7]="Now20S"; project[8]="Now20M"; project[9]="Now20L"; 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 9`; 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