perl to python
Josef Meile
jmeile at hotmail.com
Tue May 11 05:16:01 EDT 2004
Steven Rumbalski wrote:
> 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.'
Yes, but you're assuming that the users are using Unix/linux. What's
about the windows users? Perhaps there is a sed for windows already, but
why to bother installing it?
More information about the Python-list
mailing list