Bob Beers wrote:
On Tue, Sep 23, 2008 at 7:26 PM, Barry Brimer <[EMAIL PROTECTED]> wrote:
With commas separating groups:

getent group | egrep -i '^groupname:' | awk -F : '{ print $4}'

With spaces separating groups:

getent group | egrep -i '^groupname:' | awk -F : '{ print $4}' | sed -e 's/,/
/g'



ok, Barry wins. :)

But, I don't think you need the egrep ...

getent group groupname | ...

works ok for me.

-Bob

Excellent, 'getent group...' should do perfectly.  Thanks Barry and Bob.

begin:vcard
fn:Tim Alberts
n:Alberts;Tim
org:Measurement Systems International;Engineering
adr:Suite 200;;14240 Interurban Avenue South;Seattle;WA;98168;USA
email;internet:[EMAIL PROTECTED]
title:Associate Engineer
tel;work:206-433-0199
tel;fax:206-244-8470
x-mozilla-html:FALSE
url:http://www.msiscales.com/
version:2.1
end:vcard

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Reply via email to