bash command that lists all members of a group by their real names
I'm writing a manual for Linux newbies and I am looking for a command that would list all members of a group by their real names (our network logins are pretty cryptic and useless).
Doing the command:
cat /etc/group | sort
is too much info and gives out the cryptic logins.
For example, in /etc/passwd I am listed as:
I want a command such as:
which would display: