#!/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"; con=1; for pro in `seq 1 5`; do for pol in `seq 1 3`; do run="STAR -f ${project[pro]} -pol ${policy[pol]} -ex -lc"; echo $run; if [ $con -eq 1 ]; then con=0; $run & else con=1; $run fi done done