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.";
In reply to Re: Golfing a size/date grabber
by sauoq
in thread Golfing a size/date grabber
by delirium
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |