What is a Shell Script
A shell script can be as simple as a sequence of commands that you type regularly. By putting
them into a script, you reduce them to a single command.
- A text file containing commands which could have been typed directly into the shell.
- The shell itself has limited capabilities -- the power comes from using it as a "glue"
language to combine the standard Unix utilities, and custom software, to produce a tool
more useful than the component parts alone.
- Any shell can be used for writing a shell script. To allow for this, the first line of every script
- Any file can be used as input to a shell by using the syntax:
- If the file is made executable using
chmod, it becomes a new command
and available for use (subject to the usual $PATH search).
chmod +x myscript
Example: ex0 display, text