in reply to Re (3): Getting all emails
in thread Getting all emails
Here is the script that you fixed for me:anyname@aa.company.com anyname@bb.company.com anyname@company.com
If this is all that can be done then I do thank you for helping me get this far. Thanks again!use File::Find; sub wanted { local *F; if( $_ =~ /\.html?$/) { my $name = $File::Find::name; open ( F, $name ) or die "$!: $name\n"; while($line = <F>) { if($line =~ /\@(?:aa\.|\.bb)*company\.com/) { print "FILE = $_ ; } } close F; } } find( \&wanted, "/directory/path" );
|
|---|