> > how to replace a string in the files under a directory-tree with some
other
> > string. Is there any smart script/tool available to do this.
>
> man sed. Look at 's' command..
> And it doesn't matter where file is. All you need is to provide good
enough
> relative/absolute path..
>

I tried
$sed 's/new/old/' < test.txt >newtest.txt

It replaces the first occurance.
I want somthing like changing all the mached string recursively in the
directory tree.

-Logu


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to