News for hackers. Stuff that matters.
Re:Why Awk for AI? (1997) by sprayk on Friday May 17, 2013 @03:35PM (#5726302)
Ah, so using python for stuff bash is usually used for. I thought OP meant writing python scripts to be used as components of bash scripts.

For _that_ type of python, I usually use the sh module[0]. It handles piping pretty well, especially if you use StringIO to deal with the pipes. Unfortunately, return code-based conditionals are nowhere as simple as || and && are in shell.

[0] http://amoffat.github.io/sh/

There are no comments on this comment yet.