#!/bin/bash fn=1300 fieldl="100" for gas in "ne" #"ar" do if [ "$gas" == "ne" ] then gainl="74" # "70 71 72 73 74 75 76" fi if [ "$gas" == "ar" ] then gainl="80 82 84 86" #gainl="81 82 83 84 85 86 87" fi for gain in $gainl do for field in $fieldl do for i in $(seq 5 ) do fn=$(($fn + 1)) export gas export field export filenum=$fn export gain echo gas:${gas} field:${field} gain:${gain} filenum:${filenum} # qsub -N C${i}_${field}${gas}${gain} -v "gas","field","filenum","gain" macro/tpc/FOPI/BatchTools/batchCosmic.sh ./macro/tpc/FOPI/BatchTools/batchCosmic.sh done done done done