I am trying to get the last day in this current month, or the last month, what I am using to workaround this "problem" is checking with:
if [ $DAY -eq 1 ]; then
code here;
fi
If the day is 1, so it's saying that I am in the new month, so I need to domy backup as well.
Do you guys have any idea how can I do the check if today is the last day in the Month "January 31th" for example???
Thank you!!!!