You're viewing a comment by Holy Penguin and its responses.

April 16, 2014, 17:07

history | sed 's/ *[^ ]* *//' | awk '{count[$0]++} END { print count[i],i }' | sort -nr | head

Which is more or less the same as your one-liner but with one iteration less over the whole history. It also respects the spacings inside the commands, thing that my previous command does not.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "rocket_334": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.