Hope non-*min-centric topics are allowed, otherwise simply delete my post – no hard feelings.
The subject says it all. Looking for some distraction but also inspiration what other members come up with and use frequently.
I start:
alias topten='history | awk '\''{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}'\'' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10'
Displays the ten most-used commands (don’t clear your history file). I use it on a weekly basis to figure if there are leftover commands I haven’t transformed into an alias yet.
What’s yours?