File processing - is Python suitable?

Alan Isaac aisaac at american.edu
Tue Jun 19 09:38:59 EDT 2007


ferrad wrote:
> I have large text files containing text, numbers, and junk.  I want to
> delete large chunks process other bits, etc, much like I'd do in an
> editor, but want to do it automatically.  
> Question: can I translate these types of rules into programmatical
> constructs that Python can use to process these files?

Someone can.  ;-)
However if the file is structured,
awk may be faster, since this sounds
like the kind of report generation it
was designed for.

Alan Isaac



More information about the Python-list mailing list