$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
 
Home | FAQ | News | Intro | Samples | Tutorial | Reference | Software
Developer's Notes | Licensing | Authors | Pikt-Users | Pikt-Workers | Related Projects | Site Index | Privacy Policy | Contact Us
Page best viewed at 1024x768 or greater.   Page last updated 2019-01-12.   This site is PIKT® powered.
Copyright © 1998-2019 Robert Osterlund. All rights reserved.
Home FAQ News Intro Samples Tutorial Reference Software
PIKT Logo
PIKT Page Title
View sample
HTML head
macros