How do you run system commands?
Moshe Zadka
moshez at math.huji.ac.il
Fri Mar 3 09:43:16 EST 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 geocities.com>.
http://www.oreilly.com/news/prescod_0300.html
More information about the Python-list
mailing list