Bash examples following style guide at https://github.com/progrium/bashstyle