Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

import os

os.system('mycommand | sed 's/ugly/beautiful/g' | awk -F: '{print $2,$4}' 1> something.report 2> err.log')



You forgot to point out all those "footguns" you avoided by writing in Python rather than bash...


This has all of the purported problems of doing this directly in a shell language and zero advantages...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: