Running shell commands with Python
Although bash scripts are powerful, the language contains many gotchas that makes your head scratch. I therefore really enjoy the simplicity of Python. The following is a simple way to run shell command and get the result, using Python. Note that output to stderr will not be returned.
Usage example - find maven dependencies, do some filtering and print the result: