But you can do away with stat altogether:
if (-M "rajesh.txt" >= 1) { print "The file was modified more than 1 day ago\n"; }
In reply to Re: compare file modification time and current time
by JavaFan
in thread compare file modification time and current time
by rajeshatbuzz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |