$grname(), $groupname()
DESCRIPTION
for any given group name, or group id (gid), returns the corresponding
group name (as recorded in the system /etc/group file)
SYNOPSIS
$grname(s)
$groupname(s)
or:
$grname(i)
$groupname(i)
ARGUMENTS
s - a quoted string, or string expression, representing a group name
or:
i - an integer, or integer expression, greater than or equal to zero,
representing a group id (gid)
EXAMPLES
# pikt +C 'output $grname("root")'
root
# pikt +C 'output $grname(0)'
root
rule
if $grname(0) ne "root"
output mail "in group, gid 0 not root!"
fi
SEE ALSO
$grpassword(), $grouppassword()
$grmem(), $groupmem(), $grmembers(), $groupmembers()
String Functions
Numerical Functions