U
U. N. Owen
David Raleigh Arnold enlightened us with:
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
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