diff options
author | Jonas Smedegaard <dr@jones.dk> | 2001-12-12 19:52:40 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2001-12-12 19:52:40 +0000 |
commit | c81b7f986867db292d62a1757123723b5ef66518 (patch) | |
tree | a217cf2f481ab7b3099ef76b519a4cc8e1786096 /usergroupinfo |
Initial revision
Diffstat (limited to 'usergroupinfo')
-rwxr-xr-x | usergroupinfo | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/usergroupinfo b/usergroupinfo new file mode 100755 index 0000000..f9fa9b8 --- /dev/null +++ b/usergroupinfo @@ -0,0 +1,13 @@ +#!/usr/bin/perl +@input = "| grep -i \"@ARGV\"" if @ARGV; +@users = `cat /etc/passwd @input`; +#print @input; +foreach $n (@users) +{ + $user =~ /(\S+)/; + ($a, $b, $c, $d, $name) = split (/:/, $n); + ($name) = split(/,/,$name); + next if ($c < 100); + print "$a\t($name)\t"; + print `id -Gn $a`; +} |