summaryrefslogtreecommitdiff
path: root/usergroupinfo
blob: f9fa9b84c28720a0c3cfc2bd22e0b16bbd9c0afc (plain)
  1. #!/usr/bin/perl
  2. @input = "| grep -i \"@ARGV\"" if @ARGV;
  3. @users = `cat /etc/passwd @input`;
  4. #print @input;
  5. foreach $n (@users)
  6. {
  7. $user =~ /(\S+)/;
  8. ($a, $b, $c, $d, $name) = split (/:/, $n);
  9. ($name) = split(/,/,$name);
  10. next if ($c < 100);
  11. print "$a\t($name)\t";
  12. print `id -Gn $a`;
  13. }