[CentOS] script

Tue Sep 30 20:09:04 UTC 2008
Tharun Kumar Allu <tharun.allu at gmail.com>

On Tue, Sep 30, 2008 at 3:47 PM, Mad Unix <madunix at gmail.com> 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
>

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
==============
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20080930/f855ba79/attachment-0004.html>