tbo has asked for the wisdom of the Perl Monks concerning the following question:
while (1) { last unless (($gname,$gpasswd,$gid,$members)=getgrent ()); @list_members=split (/\s+/,$members); @list=grep (/$name/,@list_members); if ($list[0] eq $name) { push (@sec_gp,"$gname"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: To get the secondary groups for linux
by jlongino (Parson) on Jan 05, 2002 at 05:18 UTC | |
by tbo (Scribe) on Jan 08, 2002 at 14:46 UTC | |
|
Re: To get the secondary groups for linux
by kschwab (Vicar) on Jan 05, 2002 at 08:37 UTC | |
|
Re: To get the secondary groups for linux
by belg4mit (Prior) on Jan 05, 2002 at 13:28 UTC |