Trying to get a unique list of shells on my system. When I run this command:
cat /etc/passwd | cut -d ':' -f 7 | uniq
I get:
/bin/bash
/bin/sync
/sbin/shutdown
/sbin/halt
/bin/bash
I can't figure out why uniq isn't doing what I want. What don't I understand?
I tried taking this output, making a copy, replacing one of the /bin/bash lines with the other in the copy, and then diffing the files and I got no output, so I'm guessing not a hidden character?