Im trying to set up a KornShell script so a file is FTP'd on the first of each month.
When the file is created it should read the date of the previous month - If the job was ran on April 1st the file would be filename_MAR2023. Is this something that is included in the body of the script or would a variable need to be set up at the start?
Thank you in advance!
I have tried DATE=`date +%d%m%y`
as a variable but this seems to me like it would just take the current date and apply that in a numerical value.