I think you need to use (time - (stat $arg)[9])>7 rather than -M
I think -M is fine here, as it's
-M Script start time minus file modification time, in days.
...which - as I understand - is what the OP wants.
In reply to Re^2: shift or die unless
by almut
in thread shift or die unless
by joec_
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |