unix cmd

Hi
i want a shell script to get the date which is mentioned in the first line of a file.

file format is:
#EOD rates on 20050228 at 22:06:37
--------
--------
-------

first line length is always fixed.

head -1 Your_File | awk -F " " {print $4}

You can also use

awk 'NR==1{print $4;exit}' file1

You can use sed as,

sed '1!d;s/^.*\(........\)$/\1/' <filename>

so that it will print
22:06:37

HTH.