News for hackers. Stuff that matters.
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

There are no comments on this comment yet.