python處理shell命令

To use pipe from the shell.python

from subprocess import runrun('grep something', data=run.stdin)

$ ps aux | python script.py
相關文章
相關標籤/搜索