Sometimes you just want to know the age of a file in seconds:
perl -e 'print (int((-M shift)*60*60*24)||1)' script_file
perl -e 'print (int((-M shift)*60*24))' script_file
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: file age in seconds using M file test
by Athanasius (Archbishop) on Apr 16, 2015 at 02:14 UTC | |
|
Re: file age in seconds using M file test
by jeffa (Bishop) on Apr 16, 2015 at 15:22 UTC |