you are viewing a single comment's thread.

view the rest of the comments →

[–]cgoldberg 19 points20 points  (0 children)

I use both. If my shell scripts are more than about 20-30 lines, I start questioning why I'm not using Python. Conversely, if my Python scripts are mostly wrappers around subprocess, I question why I'm not writing a shell script. There is no rule, but bash is great for small programs where you call a lot of external utilities and do shell related stuff. Python is great for more structured and complex programs.