sed with python

U. N. Owen electricity at uymail.com
Wed Aug 27 13:26:36 EDT 2003


David Raleigh Arnold enlightened us with:
> How do I use python as a wrapper for sed and/or gawk scripts?

You don't. Python can do anything sed and awk can, and much, much
more.

Sybren



That's true, but it may be useful to use
existing code (and not bother rewriting in Python).
You can use shell scripts, pipes, or if you
want to use only python scripts, use
os.system to call sed or awk.
But if you write new functions, Python
is enough, as Sybren says
-- 
_______________________________________________
Get your free email from http://www.uymail.com

Powered by Outblaze





More information about the Python-list mailing list