Find duplicate usernames in /etc/passwd
# cat /etc/passwd | awk -F: '{print $1}' | sort | uniq -c | grep -v 1 # cat /etc/shadow | awk -F: '{print $1}' | sort | uniq -c | grep -v 1 # awk -F: '{ print $1, $5}' /etc/passwd
A chronological documentation test project, nothing serious, really!
# cat /etc/passwd | awk -F: '{print $1}' | sort | uniq -c | grep -v 1 # cat /etc/shadow | awk -F: '{print $1}' | sort | uniq -c | grep -v 1 # awk -F: '{ print $1, $5}' /etc/passwd