command line personas

Stephen ran a cool line of command line goodness to crunch out a list of the most commonly run commands he runs in Terminal. The code he ran is: % history|awk '{print $2}'|sort|uniq -c|sort -rn|head Hey, that's pretty cool. Crunches through the shell history, spits out a list of commands, groups them by uniqueness and sorts them by number of occurrences. I ran it on the 3 systems I use most often:...

April 18, 2008 · 2 min