Code One-Liner
From Ben via a dead link:
history | awk ‘{a[$2]++}END{for(i in a){print a[i] ” ” i}}’ | sort -rn | head
What does this one-line shell command do, and how exactly does it do it?
From Ben via a dead link:
history | awk ‘{a[$2]++}END{for(i in a){print a[i] ” ” i}}’ | sort -rn | head
What does this one-line shell command do, and how exactly does it do it?
Recently Answered