I have a directory with 'n' number of files in it. I am trying to write a shell script which will list only the files created on the particular day the script is running, and will use
sftp to move the files listed for the day to another server. I don't want to use
I tried using
ls -l --time-style=+%D | grep $(date +%D) | grep -v '^d'
to list the files that are created for today. How do I copy the listed files to another directory, so that I can
sftp the directory to another server. I tried the below command, but no use
ls -l --time-style=+%D | grep $(date +%D) | grep -v '^d' > /home/oracle/SABARISH/logs/files/
And how do I
sftp using shell script, I have tried
sftp in command line, but is different when used in script.