getgrent function : getgrent « System Functions « Perl






getgrent function

      

#!/usr/bin/perl

use warnings;
use strict;

while (my ($name, $passwd, $gid, $members) = getgrent) {
    print "$gid: $name [$passwd] $members \n";
}

   
    
    
    
    
    
  








Related examples in the same category

1.Get group name
2.The Perl function getgrent retrieves an item from the user group file.
3.Find all users without passwords?