Hi,
I'm writing a script that uses 4 known files as input. I'd like to check to see if the files are over a day old so I can delete them because if they aren't over a day old, then there is no reason to recreate the file (which takes some time with sort and uniq and join etc...)
So, is there anyway in script to say something like,
if the specific file is over 1 day old, delete it.
...and do this for 4 different specific files?
Thanks for your help.
-Tyler
I'm writing a script that uses 4 known files as input. I'd like to check to see if the files are over a day old so I can delete them because if they aren't over a day old, then there is no reason to recreate the file (which takes some time with sort and uniq and join etc...)
So, is there anyway in script to say something like,
if the specific file is over 1 day old, delete it.
...and do this for 4 different specific files?
Thanks for your help.
-Tyler