Hello All,
I am transferring a file from one server to another server.
File name is stored as Wip_DD-MM-YY .i.e if we run the program today the file is stored as Wip_18-FEB-09.txt.
This file i need to transfer.
My question is how do we assign the this filename to a variable.
i treid in the following way
export MYFILE=wip_`date +%d-%b-%y.txt`
ftp -v -n testone << EOF
user user_name pass_Word
cd /D01/tl/Test/outbound
ascii
get $MYFILE
bye
EOF
But i am getting error as follows Wip_18-Feb-09.txt: is not an identifier.
Also i would like get the month name as FEB not as feb.
Please let me know
Kind Regards,
Praveen