Replace in large text file ?

Paul Rubin no.email at nospam.invalid
Sat Jun 5 10:46:51 EDT 2010


Steve <vvw25w at googlemail.com> writes:
> Remove all comma's
> Replace all @ with comma's
> Save as a new file.

The simplest way is just copy the file one character at a time, making
replacements to commas and @'s as stated.  That will be a bit slow
(especially in Python) but if you only have to do it once, just wait it
out.



More information about the Python-list mailing list