1

Extracting the title from an html file

view story
linux-howto

http://www.linuxquestions.org – I want to extract the title from an html file. When the title appears on one line grep "<title>" works; when the title takes more than one line sed -n '/<title>/,/<\/title>/p' works - but they don't work in each other's case. I could test for this but I hope that there's some way to pick out everything between <title> and </title> in all cases that I haven't thought of. Is there? (HowTos)