Getting info from an HTML file



I have used a grep command to do a basic search on my web site, so I
have an array with all the html files containing the search word.

I'd like to pull out the string between <title></title> tags and use
that as the text for the link..

Best way?

.