Chapter 35. Scripting With Style

Table of Contents

1. Unofficial Shell Scripting Stylesheet

Get into the habit of writing shell scripts in a structured and systematic manner. Even on-the-fly and written on the back of an envelope scripts will benefit if you take a few minutes to plan and organize your thoughts before sitting down and coding.

Herewith are a few stylistic guidelines. This is not (necessarily) intended as an Official Shell Scripting Stylesheet.