I have a files named with YYYYMMDD
in the file name, such as
file-name-20151002.txt
I want to determine if this file was modified after 2015-10-02.
Notes:
- I can do this by looking at the output of
ls
, but I know that parsing the output ofls
is a bad idea. - I don't need to find all files dated after a specific date, just need to test one specific file at a time.
- I am not conceded about the file being modified on the same date after I created it. That is, I just want to know if this file with
20151002
in the name was modified on Oct 03, 2015 or later.