Why use Shell Scripts
- Combine lengthy and repetitive sequences of commands into a single, simple command.
- Generalize a sequence of operations on one set of data, into a procedure that can be
applied to any similar set of data.
- Create new commands using combinations of utilities in ways the original authors
never thought of.
- Simple shell scripts might be written as shell aliases, but the script can be made available to all users
and all processes. Shell aliases apply only to the current shell.
- Wrap programs over which you have no control inside an environment that you can control.
- Create customized datasets on the fly, and call applications (e.g. matlab, sas, idl, gnuplot) to work
on them, or create customized application commands/procedures.
- Rapid prototyping (but avoid letting prototypes become production)
- System boot scripts (/etc/init.d)
- System administrators, for automating many aspects of computer maintenance, user account
- Application package installation tools
- Application startup scripts, especially
unattended applications (e.g. started from
- Any user needing to automate the process of setting up and running commercial applications,
or their own code.
AUTOMATE, AUTOMATE, AUTOMATE