Use #awk to take a list of data with repetitions and build a new list of unique ...
🌈 ☯️Teresita🐧👭 @linuxgal@techhub.social
Use #awk to take a list of data with repetitions and build a new list of unique entries, with a second column displaying the number of instances of the original item in that first list.
awk '{count[$1]++} END {for (x in count) print x "," count[x]}' list