Wednesday, August 24, 2011

How to find all users in a group???

For :- staff group
lsgroup -a users staff |cut -f2 -d= |tr -s ',' '\n'
For :- unix12 group
lsgroup -a users unixl2 |cut -f2 -d= |tr -s ',' '\n'

No comments:

Post a Comment