3 ms·uniq seems a bit easier to understand here: history | awk '{print $2}' | sort | uniq -c | sort -rnby jakupovic 12y agouniq seems a bit easier to understand here: history | awk '{print $2}' | sort | uniq -c | sort -rn