Concatenate sysdate with file name in shell script
RoopakJul 20 2010 — edited Jul 20 2010Hi,
I have one shell script which i am using to transfer data(SFTP).
Now I have one requirment to use sysdate along with the file name as the file name for the data being transfered.
script is like this...
function connect
{
sftp $USER@$HOST <<END_SCRIPT
lcd $FILE_DIR
if [ $FILE="PO" ] then
quote site recfm=fb
quote site lrecl=230
pwd
put $FILE 'OPENPO'
fi
quit
END_SCRIPT
}
Can any one tell how i can concatenate sysdate with the file name (put $FILE 'OPENPO')?
Thanks in Advance,
RR