#!/bin/bash PATH=$PATH:~/bin mkdir -p ~/STAR/STAR_results/ declare -a project project[1]="flight"; project[2]="ground"; declare -a policy policy[1]="strategic"; policy[2]="tactical"; policy[3]="all"; declare -a strat strat[1]="none"; strat[2]="archriskresl"; strat[3]="improvepcap"; strat[4]="improvepmat"; strat[5]="improveprecflex"; strat[6]="improveteam"; strat[7]="improvetooltechplat"; strat[8]="reducefunc"; strat[9]="reducequality"; strat[10]="relaxschedule"; strat[11]="1reuse"; strat[12]="2reuse"; strat[13]="3reuse"; strat[14]="4reuse"; pname=""; con=1; for i in `jot 100`; do echo "RUN #" $i for pro in `jot 2`; do for st in `jot 4 11`; do if [ $st -gt 10 ]; then pname="${project[pro]}"; else pname=""; fi run="STAR -ex -f ${project[pro]} -pol all -st $pname${strat[st]} -run $i"; echo $run; if [ $con -eq 1 ]; then con=0; $run & else con=1; $run fi done done done