1. Perl
  2. builtin functions
  3. here

getgrnam function - get group ID from group name

To get the group ID from the group name , use the getgrnam function as follows:

# Get group ID from group name
my $gid = (getgrnam'devel') [2];

Related Informatrion