Re: sed problem

2003-10-21 Thread Floris Bruynooghe
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 > >specialist cards > > > >I need the "specialist cards" in a variable $titlecontents > >I thought it would be easy with sed > > > >sed -n '//,/<\/title>/p'

Re: sed problem

2003-10-20 Thread Dave selby
Dave selby wrote: I need to get the contents of a HTML title tag & put it in a string. ie specialist cards I need the "specialist cards" in a variable $titlecontents I thought it would be easy with sed sed -n '//,/<\/title>/p' But no go. I have tried various ways but to no avail. Any ideas ?

Re: sed problem

2003-10-19 Thread Bijan Soleymani
On Sun, Oct 19, 2003 at 11:37:44AM +0100, Dave selby wrote: > I need to get the contents of a HTML title tag & put it in a string. > > ie > specialist cards > > I need the "specialist cards" in a variable $titlecontents > I thought it would be easy with sed > > sed -n '//,/<\/title>/p' > > But

Re: sed problem

2003-10-19 Thread Michael D Schleif
Dave selby <[EMAIL PROTECTED]> [2003:10:19:11:37:44+0100] scribed: > I need to get the contents of a HTML title tag & put it in a string. > > ie > specialist cards > > I need the "specialist cards" in a variable $titlecontents > I thought it would be easy with sed > > sed -n '//,/<\/title>/p' >

Re: sed problem

2003-10-19 Thread Andre Kalus
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 > specialist cards > > I need the "specialist cards" in a variable $titlecontents I thought it > would be easy with sed > > sed -n '//,/<\/title>/p' > > But no g

Re: sed problem

2003-10-19 Thread David Jardine
On Sun, Oct 19, 2003 at 11:37:44AM +0100, Dave selby wrote: > I need to get the contents of a HTML title tag & put it in a string. > > ie > specialist cards > > I need the "specialist cards" in a variable $titlecontents > I thought it would be easy with sed > > sed -n '//,/<\/title>/p' > > But

Re: SED problem

2003-10-05 Thread Dave selby
Bijan Soleymani wrote: On Sat, Oct 04, 2003 at 07:25:32PM +0100, Dave selby wrote: I have multiple html files. I need to remove the same chunk of code from all of them. I have made a bash loop to feed the files to sed, but am struggling with the sed code. I need to delete all the code betwee

Re: SED problem

2003-10-05 Thread Dave selby
Michael D Schleif wrote: Michael D Schleif <[EMAIL PROTECTED]> [2003:10:04:16:32:37-0500] scribed: Dave selby <[EMAIL PROTECTED]> [2003:10:04:19:25:32+0100] scribed: I have multiple html files. I need to remove the same chunk of code from all of them. I have made a bash loop to feed the f

Re: SED problem

2003-10-04 Thread Michael D Schleif
Michael D Schleif <[EMAIL PROTECTED]> [2003:10:04:16:32:37-0500] scribed: > Dave selby <[EMAIL PROTECTED]> [2003:10:04:19:25:32+0100] scribed: > > I have multiple html files. I need to remove the same chunk of code from > > all of them. > > I have made a bash loop to feed the files to sed, but am

Re: SED problem

2003-10-04 Thread Michael D Schleif
Dave selby <[EMAIL PROTECTED]> [2003:10:04:19:25:32+0100] scribed: > I have multiple html files. I need to remove the same chunk of code from > all of them. > I have made a bash loop to feed the files to sed, but am struggling with > the sed code. > > I need to delete all the code between > >

Re: SED problem

2003-10-04 Thread Bijan Soleymani
On Sat, Oct 04, 2003 at 07:25:32PM +0100, Dave selby wrote: > I have multiple html files. I need to remove the same chunk of code from > all of them. > I have made a bash loop to feed the files to sed, but am struggling with > the sed code. > > > I need to delete all the code between > > > >