Except that you better quote the dots in the search string and put word boundary match around it or you'll end up replacing too much. See sed's -r switch for more. On 10/1/08, Chris Geldenhuis <chris.gelden at iafrica.com> wrote: > Mad Unix wrote: >> Dear ALL, >> >> I need some help with bash scripting, a script that search the content >> of multiple files and replace old string ip "10.5.1.10" with the new >> string ip "127.128.1.10" it will search in specific folder and sub >> folders >> >> Thanks >> _______________________________________________ >> CentOS mailing list >> CentOS at centos.org >> http://lists.centos.org/mailman/listinfo/centos >> >> > How about: > > find <startdir> -exec sed "s/10.5.1.10/127.128.1.10/" \{\} \; > > ChrisG > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > -- Sent from Google Mail for mobile | mobile.google.com