The contents of a basic Sun Grid Engine job file look something like this:
#!/bin/bash
# SGE uses shell script comments that start with “#$” to configure how
# SGE handles the job.
#
# Use the bash shell as the shell for the job:
#$ -S /bin/bash
#
# Write output and error stream to the current working directory:
#$ -cwd
#
# The job [...]