#!/bin/bash mkdir -p ~/STAR/STAR_results/ declare -a policy policy[1]="tactical"; policy[2]="strategic"; policy[3]="all"; declare -a project project[1]="ALL"; project[2]="flight"; project[3]="ground"; project[4]="OSP"; project[5]="OSP2"; declare -a scoring scoring[1]=""; scoring[2]="-er"; declare -a mutation mutation[1]=""; mutation[2]="-ex"; 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 s in `seq 1 2`; do for m in `seq 1 2`; do run="STAR -f ${project[pro]} -pol ${policy[pol]} ${scoring[s]} ${mutation[m]} -run $i"; echo $run; if [ $con -eq 1 ]; then con=0; $run & else con=1; $run fi done done done done done