Group Functions
See also user functions.
groupID
Convert a group name to a group ID
Usage
groupID groupName
Convert a group name to a group ID Return Code: 0 - All groups were found in the database and IDs were output successfully Return Code: 1 - Any group is not found in the database. Return Code: 2 - Argument errors (blank argument)
Writes to standard output
Integer. One line for each group name passed as an argument.
Arguments
groupName- String. Required. Group name to convert to a group ID
Return codes
0- Success1- Environment error2- Argument error
Requires
throwArgument getent cut printf usageDocument decorate grep quoteGrepPattern