simple search and replace



Hi,

I'm using Fedora Core 5 Linux. How do I do a search and replace in a
given directory and down through all its sub directories where I want
to replace the string

$_SERVER['DOCUMENT_ROOT']

with

DOC_ROOT

Thanks for your help, - Dave

.



Relevant Pages

  • Re: simple search and replace
    ... --Vikas Shukla ... I'm using Fedora Core 5 Linux. ... given directory and down through all its sub directories where I want ...
    (comp.unix.shell)
  • Function to validate a Unix file name?
    ... Can anyone provide a function that can validate if a string would pass ... as a valid Unix (specifically Fedora Core 8 Linux) file name? ...
    (comp.lang.javascript)
  • Re: find strings in sub directories
    ... [This followup was posted to comp.unix.shell] ... > How do I find a specific string with grep in all files including files in ...
    (comp.unix.shell)
  • Re: find strings in sub directories
    ... > How do I find a specific string with grep in all files including ... > files in sub directories? ... You can use this command; ...
    (comp.unix.shell)