how to make your bash script run on a machine with csh and bash

hi,
i have a script that runs on bash and would like to run it on a machine that has csh and bash. the default setting on that machine is csh. i dont want to change my code to run it with a csh shell. is there any way i can run the script (written in bash) on this machine? in other words is there any statement i can put in my script that will change the script on the host machine from csh to bash?

Replace the shebang of your script with (supposing you have bash in the director /bin):

#!/bin/bash

ok this is an old machine..here are first few lines from the script:

#!/sbin/sh

start_time=`date +%s`
binarray=(20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20)
 
awk 'NR>20&&NR<32' try.sum | awk '{print $4 }' >io
awk 'NR>20&&NR<32' try.sum | awk '{print $9 }' >io1
awk 'NR>20&&NR<32' try.sum | awk '{print $14 }'>io2
 
count=0
exec 10<io
while read LINE <&10; do
    ARRAY[$count]=$LINE
    ((count++))
done

[/SIZE]

when i run it,it complains about the binarray statement and also says command 10: not found..

Have you tried to replace the shebang?

Regards