How do you run system commands?

Moshe Zadka moshez at
Fri Mar 3 15:43:16 CET 2000

On Fri, 3 Mar 2000, Marty Joyce wrote:

> Can anyone tell me how to run system commands (eg: sed, grep....) from
> within a python script file?

The answer to that question is easily answered in the docs, so I'll just
point out the obvious: you don't *need* sed and grep. Python has its
powerful "re" module. It's much better to use that then piping over 
and over.
Moshe Zadka <mzadka at>.

More information about the Python-list mailing list