I am trying to check if a certain script (Backup_18_04.sh) has been run today.
I only want it run once per day.
I found this, but it does not work.
I can not tell what it is checking for?
today=`/bin/date -d today '+%m-%d-%Y_%I:%M-%p'`
if [ -f /media/storagedrive/Ubuntu_Mate_18.04/$today ]
then
echo It exists
else
echo It does not exist
fi