korn shell to cut command output

hello,

i use following command:

md5sum TEST.xml

the output looks like:

900hjidur84hjr938ikv TEST.xml

as you can see, the first part is the md5 code, the second part is the file name, but i only want the first part(md5 code), and save it to a file, how to do that? thanks.

md5sum TEST.xml | awk '{ print $1 }' > output

Thank you very much, it help a lot