At our university we have the policy that on certain disks' data is deleted if it is not modified for six months. Now I would like to list all files that have not been modified in the last five months.
for the files not modified in this period (
If you need to be more precise regarding leap years and particular month lengths, you can do this:
Here's how the number of days would vary if the above were run on the first day of each month in 2010:
As you can see "150" is only an approximation. However, for most purposes approximations (such as