On Tue, Sep 30, 2008 at 3:47 PM, Mad Unix <[EMAIL PROTECTED]> 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@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

sed -i  's/10.5.1.10/127.128.1.10/'

should help you
example
find /path/ <additional parameters to find the files> | xargs sed -i  's/
10.5.1.10/127.128.1.10/'

-- 
Tharun Kumar Allu
==============
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Reply via email to