4 ms·
Why not find out: history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
by spdustin 12y ago
Why not find out:
history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
- scarecrowbob 12y ago:D HA! Nice! 2936 git 1166 cd 409 ll 343 ssh 302 l 279 vagrant 223 ls 201 la 151 cat 140 mkdir
- jakupovic 12y agouniq seems a bit easier to understand here: history | awk '{print $2}' | sort | uniq -c | sort -rn