Code:
#!/usr/bin/perl -w
use File::Find;
my @ar;
sub wanted {
if ($_ eq "foo"){
push @ar , $File::Find::name;
}
}
find \&wanted , '/usr/home/';
foreach $ln (@ar){
if ($ln !~ /cd/){
# print $ln."\n";
}
}
Joe