#!/bin/bash mkdir -p ~/STAR/STAR_results/ declare -a year year[1]="70"; year[2]="80"; year[3]="90"; year[4]="00"; declare -a project project[1]="flight"; project[2]="ground"; declare -a policy policy[1]="stratj"; policy[2]="tactj"; con=1; for y in `seq 1 4`; do for pro in `seq 1 2`; do for pol in `seq 1 2`; do run="STAR -ex -f ${project[pro]}${year[y]} -pol ${policy[pol]}${project[pro]} -png"; echo $run; if [ $con -eq 1 ]; then con=0; $run & else con=1; $run fi done done done