[CentOS] replace
Marcelo Roccasalva
marcelo-centos at irrigacion.gov.arWed Oct 29 16:38:13 UTC 2008
- Previous message: [CentOS] replace
- Next message: [CentOS] Help with a sun cobalt with sendmail and centos with postfix
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Oct 24, 2008 at 5:58 PM, Phil Schaffner <Philip.R.Schaffner at nasa.gov> wrote: > Mad Unix wrote: >> >> i need your feedback about this command, it should find a string in >> multiple html files in a directory and replace it with a different >> string... >> >> find /dir -name "*.html" -exec sed -i 's/"old"/"new"/g' {} \; > > Mad Unix, > > find /dir -name "*.html" -exec sed -i -e 's/old/new/g' {} \; find /dir -name "*.html" | xargs sed -i -e 's/old/new/g' -- Marcelo "¿No será acaso que ésta vida moderna está teniendo más de moderna que de vida?" (Mafalda)
- Previous message: [CentOS] replace
- Next message: [CentOS] Help with a sun cobalt with sendmail and centos with postfix
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list