#!/bin/bash #$ -N job_submit #$ -j y #$ -cwd #$ -l mem=3G,ct=00:45:00 # qsub -t 1-100 job_submit.sh command #LOG=/hera/panda/makonyi/Work/codes/log/ source /hera/panda/makonyi/PandaRoot/100514/built/config.sh path= base= dir0=$(echo "($SGE_TASK_ID-1)/10" | bc); dir1=$(echo "(($SGE_TASK_ID-1)-$dir0*10)" | bc) cd $path/$base/$dir0/$dir1 hadd -f RadMap_Out2.root `find . -name RadMap_Out.root`