221
edits
Changes
→Introduction to Shell Scripting
= Introduction to Shell Scripting =
* Scope ranges from simple day-to-day tasks to large database driven CGI applications.
* Shell-dependent - each shell script is written for a specific shell, such as bash
* First line of each script usually specifies the path to the program which executes the script - <code>#!</code> statement, for example: <code>#!/bin/bash</code>
* Use the which utility to find out what path to use there
* This must be the first line and nothing can precede it, not even a single space
* This line is not necessary if the script will be executed in the default shell of the user
* Any line other than first one starting with a <code># </code> is treated as a comment
= Positional Parameters =