On Sun, 19 Oct 2003 11:37:44 +0100, 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

Try: sed 's#<title>\(.*\)</title>#\1#'

Greetigs
Andre


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to