Hi Mike,
Yes, I want to keept the timestamp together with my filename prefix 'CML'
I tried your scripts with 'TODAY' as variable but at first when i run it it display the correct format of the variable ex. (CML_20070906) but when it time to do the mget it gets all the file with this kind of format ex.(CML_20070906,CML_20070905,CML_20070904,CML_200 70903) how could i tell to my script only get what is posted today.
Myra
# variables
HOST='ftp.site.com'
USER_ASE='ops1'
PASSWD_ASE='ash'
TODAY=date '+CML_%Y%m%d'`
# ftp files
ftp -n $HOST << END_SCRIPT
quote USER $USER_ASE
quote PASS $PASSWD_ASE
mget *$TODAY.csv
quit
exit 0