News for hackers. Stuff that matters.
Re:Ask HN: Best Command-Line Applications? by tummybug on Monday November 19, 2018 @06:50AM (#18485741)
This doesn't look to take commands after a pipe into account so IMHO doesn't accurately reflect command usage. For example running above I was surprised awk wasn't in the list but when I went to investigate I found I almost always am piping something to awk.
Re:Ask HN: Best Command-Line Applications? by yesenadam on Monday November 19, 2018 @10:34PM (#18491645)
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