num of users in group
This commit is contained in:
parent
5d9671174e
commit
f9ba268170
6
bash/get_num_of_groups_for_all_users_in_group.sh
Normal file
6
bash/get_num_of_groups_for_all_users_in_group.sh
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
GROUP="proj_mastcamz_mf"; echo "num groups for"; for i in $(getent group $GROUP | cut -d ":" -f 4 | sed 's/,/ /g'); do echo -n "$i: "; id $i | sed 's/,/\n/g' | wc -l; done
|
||||
# output:
|
||||
# num groups for
|
||||
# user1: 26
|
||||
# user2: 30
|
Loading…
Reference in New Issue
Block a user