I'm sending a file from a mainframe host to a linux ftp sever using sftp.
I want to append the date to the filename once the file resides on the linux box. (Ex: filename.txt becomes filename122308.txt)
I have tried the 'rename' command using 'date +%m%d%y' - the file was renamed but the flags were not executed (The filename became filename'date +%m%d%y'.txt
The 'cp' and 'mv' commands do not work... any ideas?
Thanks.