Hacker News new | ask | show | jobs
by yesenadam 2766 days ago
Hmm yeah. And often I type multiple commands separated by semicolons, which it bunches together as one. Also that and long paths meant mine was very unpretty. Speaking of AWK, this uses the same flawed method, looks nicer (for my history), and is shorter:

  history | awk '{a[$2]++} END{for (i in a) print a[i]"\t"i}' | sort -n | tail