Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Searching directories for HTML title tags

by clemburg (Curate)
on Jun 19, 2001 at 20:16 UTC ( #89691=note: print w/replies, xml ) Need Help??


in reply to Searching directories for HTML title tags

I hope this little piece of Windows Perl is enough to start you up ... assuming it's not homework ...

> perl -MFile::Find -le "sub wanted {return unless /\.html?$/; my $f = + $_; open(FH, '<'.$f); $/=undef; return unless <FH> =~ /<title>([^<]* +)<\/title>/i; print $1.' -- in: '.$File::Find::dir.$_;}; find(\&wante +d, '.')"

Christian Lemburg
Brainbench MVP for Perl
http://www.brainbench.com

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://89691]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2021-04-21 17:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?