replace string in a file

cantabile cantabile.03 at wanadoo.fr
Mon Mar 17 22:12:19 EDT 2008


Le Mon, 17 Mar 2008 09:03:07 -0700, joep a écrit :

> An example: looks for all 'junk*.txt' files in current directory and
> replaces in each line the string 'old' by the string 'new'
> Josef

Works like a charm. Many thanks for the example Josef :-)



More information about the Python-list mailing list