Rich Freeman on 13 Nov 2011 06:40:28 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Finding a /etc/group entry containing a user list


On Sun, Nov 13, 2011 at 9:24 AM,  <bergman@merctech.com> wrote:
> Nice... or slightly more compact:
>
>        groups $users | cut -d: -f2-|tr " " "\012" |sort | uniq -c | sort -nr

Apparently not all groups implementations support multiple arguments
(like the one standard on Gentoo :) ).  So, that might need to be
tweaked on some distros.  From the very little that I've been able to
google I'm not sure that this command is even all that standardized.

Rich
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug