group()
Class Public methods
Provides a convenient Ruby iterator which executes a block for each entry in the /etc/group file.
The code block is passed an Group struct.
See ::getgrent above for details.
Example:
1 2 3 4 5 | require 'etc' Etc.group {|g| puts g.name + ": " + g.mem.join( ', ' ) } |
Please login to continue.