Top 10 UNIX commands
Ever wondered what your most used shell commands are? Here’s a very silly way I knocked up to find out mine.
history|perl -anle'$C{/\d+\s+sudo/?$F[2]:$F[1]}++;END{print map{qq|$_\[$C{$_}]\n|} sort{$C{$b}<=>$C{$a}}keys%C}'|head -10
Some people would have you believe that perl is difficult to read.
This entry was posted on Wednesday, October 15, 2008 at 12:41 in computers.
You can follow any responses to this entry through the RSS 2.0 feed.
Both comments and pings are currently closed.
