blob: a4eccdde6a493bb530a98d38dd0a1d907c098239 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/usr/local/bin/perl
use strict;
use warnings;
use Term::ANSIColor;
sub main {
my $homedir = '/usr/home/';
my @users;
opendir(DIR, $homedir);
my $i = 0;
while (my $dir = readdir(DIR)) {
next if ($dir eq 'git-ro');
next if ($dir =~ m/^\./);
$users[$i] = $dir;
$i += 1;
}
closedir(DIR);
$i = 0;
while ($i < @users) {
print $users[$i] . "\n";
$i += 1;
}
exit;
}
main();
__END__
|