Re: search and replace code in php or html files

2006-05-06 Thread J.A. de Vries
On 2006-05-05 @ 18:48:36 (week 18) H.S. wrote: > Casey T. Deccio wrote: > > > > > find . -name "*.html" | xargs sed -i.bak -e > > 's/string_to_replace/replacement/g' > > > > Does something like this work? If your match pattern spans more than > > one line than you'll need a more complex script

Re: search and replace code in php or html files

2006-05-05 Thread H.S.
Casey T. Deccio wrote: > > find . -name "*.html" | xargs sed -i.bak -e > 's/string_to_replace/replacement/g' > > Does something like this work? If your match pattern spans more than > one line than you'll need a more complex script. > > Casey > > > For all cases so far, I haven't had any n

Re: search and replace code in php or html files

2006-05-05 Thread Joris Huizer
Casey T. Deccio wrote: On Fri, 2006-05-05 at 13:16 -0400, H.S. wrote: The problem is to change a particular link in all the pages. I assume the webpages were made using a template. If I were to search and replace a particular string with a the new desired one, I would be done. Could somebody su

Re: search and replace code in php or html files

2006-05-05 Thread Casey T. Deccio
On Fri, 2006-05-05 at 13:16 -0400, H.S. wrote: > The problem is to change a particular link in all the pages. I assume > the webpages were made using a template. If I were to search and replace > a particular string with a the new desired one, I would be done. Could > somebody suggest the best way

RE: search and replace code in php or html files

2006-05-05 Thread Gwenissia
and replace code in php or html files Linas Žvirblis wrote: > > Check out "rpl" package. > I will take a look, thanks. > > See if it contains a "generator" meta tag. Other than that, sites made > with Frontpage will contain all sorts of errors,

Re: search and replace code in php or html files

2006-05-05 Thread H.S.
Linas Žvirblis wrote: > > Check out "rpl" package. > I will take a look, thanks. > > See if it contains a "generator" meta tag. Other than that, sites made > with Frontpage will contain all sorts of errors, MS specific code etc. > This is not a scientific definition, but if it looks like cra

Re: search and replace code in php or html files

2006-05-05 Thread Linas Žvirblis
H.S. wrote: > The problem is to change a particular link in all the pages. I assume > the webpages were made using a template. If I were to search and replace > a particular string with a the new desired one, I would be done. Check out "rpl" package. > As an aside, given the webpage, is there an

search and replace code in php or html files

2006-05-05 Thread H.S.
Hi, I am entrusted this little task of making a slight change in a website. The site was made by somebody, I believe, in Windows, probably with Dreamweaver or Frontpage. I do not have these application to work with and moreover, most of my work is on Linux machines. The problem is to change a par