beatworm.co.uk

There is a top level navigation menu at the foot of the page

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 15th, 2008 at 12:41 in computers.
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply


  • Pages

  • Categories

  • Archives