I have two AIX SFTP servers.
I want to move multiple files starting from word cash, e.g. cash2001.txt
from one server to another using an sftp
script and then want to delete the successfully moved files from the original server.
I have tried blow script but its not working
sftp -P 10022 EUSER_20233@11.214.6.920 <<EOF
put /data/sftp/current/cash*
exit
rm /data/sftp/current/cash*
EOF