RUN_BATCH_Hs.sh 523 Bytes
#!/bin/bash


name_exp=('hs1' 'hs2' 'hs3' 'hs4' 'hs5'
	  'hs6' 'hs7' 'hs8' 'hs9' 'hs10')

hs="0.5 1 1.5 2 2.5 3 3.5 4 4.5 5"

let "count=0"
for a in $hs
do
     cat parameter.txt | sed \
       -e  "s/nmebatch/${name_exp[$count]}/g" \
       -e  "s/probcritbatch/0.15/g" \
       -e  "s/strainbatch/3e-5/g" \
       -e  "s/Hsbatch/$a/g" \
       -e  "s/hbatch/4/g" \
       -e  "s/Tmbatch/8/g" \
     > parameter.nml

     mv parameter.nml ../nml/


     qsub ./lanceur.sh

     sleep 5s


     let "count=count+1"
done