Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Concatenate sysdate with file name in shell script

RoopakJul 20 2010 — edited Jul 20 2010
Hi,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 17 2010
Added on Jul 20 2010
2 comments
610 views