top | item 41540662

(no title)

murphy214 | 1 year ago

import os

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

discuss

order

necheffa|1 year ago

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

pxc|1 year ago

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