muaddib2 has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w open PASSWD, '/etc/passwd'; my $line; my @linesplit; my @arrary1; my @arrary3; while (<PASSWD>){ $line = $_; @linesplit = split(/:/,$line); @arrary1 = "$linesplit[0]"; @arrary3 = "$linesplit[2]"; my %where; @where{"@arrary1\t"} = "@arrary3\n"; @newarray = grep {$where{$_} > 1000} keys %where; foreach $i (@newarray) { system ("find '/home/u1' -user $i -print > $i"); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: uid file finder
by mirod (Canon) on Jun 07, 2001 at 10:15 UTC | |
|
Re: uid file finder
by DBX (Pilgrim) on Jun 07, 2001 at 09:56 UTC | |
|
Re: uid file finder
by lemming (Priest) on Jun 07, 2001 at 12:12 UTC | |
|
Re: uid file finder
by Jouke (Curate) on Jun 07, 2001 at 13:50 UTC | |
|
Re: uid file finder
by clintp (Curate) on Jun 07, 2001 at 17:24 UTC |