Meme!

I know why "date" and "time" are in there, but I suspect it's not common for most folks.

~  $ history | awk {'print $2'} | sort | uniq -c | sort -k1 -rn | head
 255 git
 174 fg
 108 vim
  79 prove
  58 ack
  56 cd
  51 ls
  42 time
  41 rm
  31 date

11 Comments

Well...

     89 ls
     89 cd
     57 ppdflatex
     37 open
     30 rsync
     26 rm
     23 make
     20 mv
     19 emacs
     10 cp

And yes, ppdflatex (its a wrapper).

1342 ls 960 cd 854 svn 537 ssh 383 less 323 man 319 gvim 278 apt-cache 176 rm 159 perl

.. on my work machine. I suspect I more lines of history (10,000) than you... Also, I have ignoredups on, so that may affect the stats.

$ history|perl -nle'$c{((split)[1])}++}{@c=sort{$c{$b}<=>$c{$a}}keys%c;printf"%7d %s\n",$c{$c[$]},$c[$]for 0..9' 96 ll 54 cd 35 perldoc 34 ls 30 pmfind 30 more 23 gvim 22 perl 22 man 19 find

137 ls
111 cd
 37 mplayer
 35 rm
 23 git
 20 cat
 17 mv
 12 unzip
  8 xis_and_exit
  8 sudo

xisandexit is actually an alias for 'startx & exit' that I type every day uppon login :P

Hooray for navel gazing! =)

    177 ls
    149 vi
    105 cd
     97 perl
     94 s
     40 svn
     37 fg
     30 prove
     26 ./Build
     18 perldoc

Yes, thats alias vi='vim', and "s" is a little script I use to save keystrokes when SSH'ing between various accounts at work.

125 fg
 62 ./Build
 54 git
 45 vi
 30 perl
 27 man
 26 jobs
 24 ack
 19 cd
 16 ls

It says a lot about my workflow :-)

Here is my list:

     96 ls
     58 cd
     55 vim
     50 rm
     34 touch
     19 git
     17 sudo
     17 perl
     15 perldoc
     14 curl

Fun! I can't help but notice that most of you are not actually running perl all that much :)

948 vi
601 ls
342 cd
302 perl
255 grep
241 dqd
236 rsync
180 more
179 xsltproc
114 man

dqd is an alias for psql.

There's an emacs joke somewhere in there, I think. But modesty forbids ...


     80 l
     66 man
     57 cd
     41 perl
     32 ack
     31 ls
     27 less
     15 git
     14 prove
      9 diff

l is an alias to ls -l.

This is, however, not at all representative of my actual history. At any time I have a bunch of long-running gnome-terminal tabs open, and each of those have their own history. So the output depends on which terminal I ran the pipeline in.

Also, emacs didn't show up in the list as I have it running all the time and hardly ever close and restart it. If I did that, it would easily be at the top of the list.

Leave a comment

About Ovid

user-pic Freelance Perl/Testing/Agile consultant and trainer. See http://www.allaroundtheworld.fr/ for our services. If you have a problem with Perl, we will solve it for you. And don't forget to buy my book! http://www.amazon.com/Beginning-Perl-Curtis-Poe/dp/1118013840/