in reply to Golfing a size/date grabber
This shortens it a little and cleans up the output some too.
perl -lne '@f=localtime((stat)[9]);$t{sprintf"%d%02d%02d",$f[5]+1900,$ +f[4]+1,$f[3]}+=-s;}{print"$_ $t{$_}"for keys%t'
But... to what purpose do you want to golf this? If you are tired of typing it or something, just stick it in a shell script as is and forget about it.
-sauoq "My two cents aren't worth a dime.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Golfing a size/date grabber
by holo (Monk) on Nov 19, 2003 at 20:53 UTC | |
|
Re: Re: Golfing a size/date grabber
by delirium (Chaplain) on Nov 19, 2003 at 20:23 UTC |