Script only moving one file in the directory
I am trying to automate a SFTP transfer and have written the script below. The problem I am running into is that there are multiple files in the local directory, and my script only succeeds with one file in the local directory.
I am very much a noob and just starting to learn this stuff. The desired goal is to allow multiple files to sit in the local directory and this script to upload only the one from "today" to the remote directory. Does anyone have any thoughts on why this may be happening.
I am very much a noob and just starting to learn this stuff. The desired goal is to allow multiple files to sit in the local directory and this script to upload only the one from "today" to the remote directory. Does anyone have any thoughts on why this may be happening.