in reply to compare file modification time and current time
But you can do away with stat altogether:
if (-M "rajesh.txt" >= 1) { print "The file was modified more than 1 day ago\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: compare file modification time and current time
by rovf (Priest) on Feb 23, 2012 at 12:25 UTC |