[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

sed problem



I need to get the contents of a HTML title tag & put it in a string.

ie
<title>specialist cards</title>

I need the "specialist cards" in  a variable $titlecontents
I thought it would be easy with sed

sed -n '/<title>/,/<\/title>/p'

But no go. I have tried various ways but to no avail.

Any ideas ?

Dave



Reply to: