I am wanting to check the date of all files in a directory and if they are not today's date, send an alert ( email, log, etc. )
If I run:
find . -type f -mtime +1
in my directory where the files are, I get files that are 1 day old. This will work, but I was just wondering if there was a more 'elegant' way to do this?
If I run:
find . -type f -mtime +1
in my directory where the files are, I get files that are 1 day old. This will work, but I was just wondering if there was a more 'elegant' way to do this?