From the /etc/passwd file, extract the first and second fields separated by a comma, replace the colon with a comma, and sort the output in a unique manner based on the second field.
cut -d',' -f1,2 /etc/passwd | tr ':' ',' | sort -u -t, -k2,2