$pwname(), $passwdname()
DESCRIPTION
for a given user name, or user id (uid), returns its corresponding user name
(as recorded in the system passwd file)
SYNOPSIS
$pwname(s)
$passwdname(s)
or:
$pwname(i)
$passwdname(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 $pwname("root")'
root
# pikt +C 'output $pwname(0)'
root
rule
if $pwname(0) ne "root"
output mail "in passwd, uid 0 not root!"
fi
SEE ALSO
$pwpassword(), $passwdpassword()
$pwgecos(), $passwdgecos(), $pwcomment(), $passwdcomment()
$pwdir(), $passwddir()
$pwshell(), $passwdshell()
String Functions
Numerical Functions