On 7 Mar, 15:00, Cédric Lucantis <[EMAIL PROTECTED]> wrote: > I'd do this: > > group="group-name" > grep "^${group}:" /etc/group | awk -F ':' '{print $4}' > > It produces a comma separated list of users
It seems that there's no simple solution... This method is good, but I can't know if a user is in a group and is not listed because he "owns" the group or if no such user is present because there is none... Thanks anyway! Matteo PS The method I'm interested in should be usablefrom batch... I have to implement it on a system without X.