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