String find and replace
hokiegal99
hokiegal99 at hotmail.com
Tue Aug 26 21:43:32 EDT 2003
John Roth wrote:
> Are you trying to rename the file? Look under os - Files and Directories
> for the rename() function. It's 6.1.4 in the 2.2.3 docs.
>
> John Roth
No, I'm trying to find 'this' in files and replace it with 'that'
recursively through a directory. It works, but it doesn't actually
commit the change to the files, it finds 'this' and reports that it
replaced it with 'that', but when I run the scipt again it reports the
same files that it just fixed.
More information about the Python-list
mailing list