И чем не устроил первый ответ по вашей ссылке?
You can use grep:
grep '^group_name_here:' /etc/group
This only lists supplementary group memberships, not the user who have this group as their primary group. And it only finds local groups, not groups from a network service such as LDAP.