Skip to content

Instantly share code, notes, and snippets.

@napcae
Created October 28, 2013 07:41
Show Gist options
  • Save napcae/7192786 to your computer and use it in GitHub Desktop.
Save napcae/7192786 to your computer and use it in GitHub Desktop.
count users of a unix user group
#!/usr/bin
#change usergroupname to the group which you are searching for
grep '^usergroupname' /etc/group | tr ',' '\n' | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment