Re: How to replace some string in file

[email protected] ("Jeff Peng")
Newsgroups perl.beginners
Message-ID <[email protected]>
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 China
http://www.ChinaSquid.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.