> Doesn't work for me.  Don't know awk so I can't tell what's wrong.

Sorry didn't realise you were serious, thought you were just casting
for a script language war, just wrote off the top of me head.

Try this instead

  awk -F: '/groupname/ { gsub(","," "); printf("%s\n",$4); }' /etc/group

Cheers

Pete

P.S check that there are users listed in the /etc/group ;-)



-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to