perl to python

Jarek Zgoda jzgoda at gazeta.usun.pl
Sun May 9 15:36:07 EDT 2004


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.

-- 
Jarek Zgoda
http://jpa.berlios.de/



More information about the Python-list mailing list