cara menghitung kategori dalam baris perintah csv

cut -f1 -d, test.csv | uniq -c | tail -n +2 | while read line; do words=($line); echo ${words[1]} : ${words[0]}; done
Enchanting Elephant