#!/bin/bash HOME=/work/leverington/fluka_gfortran7/project/oxygen for j in {0..5} do JOB_HOME=$HOME/jobs$j cd $JOB_HOME for i in {0..25} #26 do $HOME/eventdatroot runjob$i\001_eventdata $j #run analysis code sleep 0.1 done done