Syntax
getgrent([string])
Description
The getgrent() function returns a hash for the given group name or Gid. If no argument is given then an array of hashes of each group entry is returned.
Example
include("grp") println(getgrent("root")) println(getgrent(0)) println(getgrent()) {"Group": "root", "Password": "x", "Gid": 0, "Members": []} {"Group": "root", "Password": "x", "Gid": 0, "Members": []} [{"Gid": 0, "Members": [], "Group": "root", "Password": "x"}, {"Password": "x", "Gid": 1, "Members": [], "Group": "daemon"}, {"Group": "bin", "Password": "x", "Gid": 2, "Members": []}, {"Gid": 3, "Members": [], "Group": "sys", "Password": "x"}, {"Gid": 4, "Members": [], "Group": "adm", "Password": "x"}, {"Gid": 5, "Members": [], "Group": "tty", "Password": "x"}, {"Gid": 6, "Members": [], "Group": "disk", "Password": "x"}, {"Members": [], "Group": "lp", "Password": "x", "Gid": 7}]