bash scripting

dave
2004-08-14T06:35:14Z

I wrote the following script to learn to read and write files. No matter how I
try to start it it doesn't work.

#!/bin/bash

shopt -s -o nounset

declare LINE

exec 3< test.dat

while read LINE <&3 ; do
printf "%s\n" "$LINE"
done

exit 0

this is the error

[root@localhost scripts]# ./test.sh
: bad interpreter: No such file or directory
[root@localhost scripts]#

can someone point me in the write direction? thanks again