Re: sed problem
On Mon, Oct 20, 2003 at 10:09:47PM +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'
> >
sed -n 's/<title>\(.*\)<\/title>/\1/gp' would be my most general
solution
floris
--
Debian GNU/Linux -- The power of freedom
www.debian.org | www.gnu.org | www.kernel.org
Reply to: