#!/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 bfc bfc[1]=""; bfc[2]="-bf"; bfc[3]="-fc"; bfc[4]="-bc"; 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 goal in `seq 1 4`; do run="STAR -ex -f ${project[pro]} -pol ${policy[pol]} ${bfc[goal]} -run $i"; echo $run; if [ $con -eq 1 ]; then con=0; $run & else con=1; $run fi done done done done