(1)

awk -F, '{a[$2]++}END{for (i in a) print i" "a[i]}'   文件名.txt




(2)

cat 文件名.txt |cut -d, -f2 |sort |uniq -c |sort -n