Job Wrappers

# ! /bin/bash -l
shopt -s expand_aliases

$ cat my_job_wrapper.sh
# ! /bin/bash
shopt -s expand_aliases

i=$1
while [ $i -le $2 ]; do
   cat << EOF > job.sh.$i
#\$ -v SGEIN1=input_file$i.txt
#\$ -v SGEOUT1=output_file$i.txt
cat input_file$i.txt >> output_file$i.txt
EOF
   qsub job.sh.$i
   rm -f job.sh.$i
   i=`expr $i + 1`
done

exit 0