Bash Scripting Style

Write scripts easy to read and maintain.

Resources #

  • Google - Shell Style Guide
    • It’s easy to understate how useful this style-guide is. It’s basically become my style bible as of late.
    • This should really be the defacto standard.

Use long option names to improve readability #

[me@linuxbox ~]$ ls -ad     # is equivalent to:
[me@linuxbox ~]$ ls --all --directory