perl to python

Steven Rumbalski srumbalski at copper.net
Mon May 10 22:31:21 EDT 2004


Olivier Scalbert wrote:

> Jarek Zgoda wrote:
>
>>Olivier Scalbert <olivier.scalbert at algosyn.com> pisze:
>>
>>>What is the python way of doing this :
>>>perl -pi -e 's/string1/string2/' file
>>>
>>Use sed.
>>
> yes, but in python ?

print 'Use sed.'
-- 
Steven Rumbalski
news|at|rumbalski|dot|com



More information about the Python-list mailing list