O'Reilly logo
  • Yuriy Chesnokov thinks this is interesting:

Example 4.2. flush.sh

#!/bin/bash
#
# Flush disks if nobody is on the computer
#
# Ken O. Burtch
# CVS: $Header$

shopt -s -o nounset

# Global Declarations

declare -rx SCRIPT=${0##*/}          # SCRIPT is the name of this script

declare -rx who="/usr/bin/who"       # the who command - man 1 who
declare -rx sync="/bin/sync"         # the sync command - man 1 sync
declare -rx wc="/usr/bin/wc"         # the wc command - man 1 wc

# Sani...
            
        
			

From

Cover of Linux Shell Scripting with Bash

Note

Well-Behaved Script Template