How to replace some string in file

2008-06-05 Thread Santosh Reddy
Hi All, I have a file called a.txt which has the following lines abcd efgh ijkl abcd123 12abcd I want to replace abcd with xyz. how do i do this. thanks a lot in advance -- Thanks Regards, Santosh Reddy.

Re: How to replace some string in file

2008-06-05 Thread ram
On Thu, 2008-06-05 at 12:32 +0530, Santosh Reddy wrote: Hi All, I have a file called a.txt which has the following lines abcd efgh ijkl abcd123 12abcd I want to replace abcd with xyz. how do i do this. thanks a lot in advance perl -pli -e 's/abcd/xyz/' a.txt -- To

Re: How to replace some string in file

2008-06-05 Thread Jeff Peng
On Thu, Jun 5, 2008 at 3:09 PM, ram [EMAIL PROTECTED] wrote: On Thu, 2008-06-05 at 12:32 +0530, Santosh Reddy wrote: how do i do this. thanks a lot in advance perl -pli -e 's/abcd/xyz/' a.txt or use the unix command 'sed'. -- Jeff Peng - [EMAIL PROTECTED] Professional Squid supports in