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

Re: sed problem



Dave selby wrote:

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


I got all your e-mails, many thanks.
I will try them out ...

Dave



Reply to: