#!/bin/bash mkdir -p ~/STAR/STAR_results/ declare -a project project[1]="ALL"; project[2]="flight"; project[3]="ground"; project[4]="OSP"; project[5]="OSP2"; declare -a sims sims[1]="100"; sims[2]="500"; sims[3]="1000"; sims[4]="5000"; sims[5]="10000"; sims[6]="20000"; declare -a SAruns SAruns[1]="100"; SAruns[2]="1000"; SAruns[3]="10000"; SAruns[4]="20000"; SAruns[5]="50000"; SAruns[6]="100000"; con=1; for i in `seq 1 10`; do echo "RUN #" $i for pro in `seq 1 5`; do for s in `seq 1 6`; do for sa in `seq 1 6`; do run="STAR -ex -f ${project[pro]} -pol all -sim ${sims[s]} -k ${SAruns[sa]} -run $i"; echo $run; if [ $con -eq 1 ]; then con=0; $run & else con=1; $run fi done done done done