Skip to content

Instantly share code, notes, and snippets.

@csanz
Created December 31, 2011 19:31
Show Gist options
  • Select an option

  • Save csanz/1545091 to your computer and use it in GitHub Desktop.

Select an option

Save csanz/1545091 to your computer and use it in GitHub Desktop.
Most used commands

history|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c|sort -r

         288 git
          29 heroku
          28 bin/runserver
          24 cd
          23 node
          13 ll
          11 vi
          10 open
           8 g
           7 mv
           7 RIAKSEARCH_HOST="search1.geekli.st" bin/runserver
           6 mongo
           6 clear
           5 sudo
           4 touch
           4 mate
           3 rm
           3 npm
           3 cat
           2 mongorestore
           2 mkdir
           2 history
           1 sublime
           1 ssh
           1 redis-server
           1 pwd
           1 monogo
           1 mongod
@visnup
Copy link
Copy Markdown

visnup commented Dec 31, 2011

not sure what your awk 'BEGIN {FS="|"} {print $1}' is for... it should and seems to work w/o.

@visnup
Copy link
Copy Markdown

visnup commented Dec 31, 2011

ohh, it's if you used lots of piping w/o spaces like:

$ ls|wc

@csanz
Copy link
Copy Markdown
Author

csanz commented Dec 31, 2011 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment