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
Location:
bin/build/tools/group.sh
Arguments
groupName- String. Required. Group name to convert to a group ID
Writes to standard output
Integer. One line for each group name passed as an argument.
Return codes
0- All groups were found in the database and IDs were output successfully1- Any group is not found in the database.2- Argument errors (blank argument)
Requires
- throwArgument - Run `handler` with an argument error (source)
- getent
cutprintf- bashDocumentation - Universal function documentation (source)
- decorate - decorate text using colors and styles (source)
grep- quoteGrepPattern - Quote grep -e patterns for shell use (source)