Here is my script which I have created for transferring particular types of files from directories. I am struggling to find a way to move the file to archive directory with current time stamp.
#!/bin/bash
SERVER='abc.com'
USER='xyz'
PASSWD='lddkdkdkas'
find /directory/ -name ABC002*.csv | while read fname
do
scp $fname [email protected]:~/XYZ/
mv $fname ./archive/
done
Here I can move the file to archive, but I am not able to move it with name changed to filename *timestamp.