I'm facing issues in executing the bash script of mine. This script will pick the latest file received and connects SFTP server and files is placed on this remote server.
sftp> cd Test
sftp> put Test_File_201309.txt
File "Test_File_201309.txt" not found.
file1_To_Copy=`ls -tr *"$keyword1"*."$ftype" | tail -n 1`
if [[ condition1 == condition2 ]]
echo "File movement"
sftp email@example.com <<EOF
Hope am clear with my requirements. Any help is greatly appreciated