$pwgecos(), $passwdgecos(), $pwcomment(),
$passwdcomment()
DESCRIPTION
for a given user name, or user id (uid), returns its corresponding gecos/comment
(as recorded in the system passwd file)
SYNOPSIS
$pwgecos(s)
$passwdgecos(s)
$pwcomment(s)
$passwdcomment(s)
or:
$pwgecos(i)
$passwdgecos(i)
$pwcomment(i)
$passwdcomment(i)
ARGUMENTS
s - a quoted string, or string expression, representing a user name
or:
i - an integer, or integer expression, greater than or equal to zero,
representing a user id (uid)
EXAMPLES
# pikt +C 'output $pwgecos("root")'
root
# pikt +C 'output $pwgecos(0)'
root
rule
if $pwgecos("root") !~~ "root"
output mail "in passwd, fix the root gecos field"
fi
SEE ALSO
$pwname(), $passwdname()
$pwpassword(), $passwdpassword()
$pwdir(), $passwddir()
$pwshell(), $passwdshell()
String Functions
Numerical Functions