Contents / Previous / Next


Unix Shell Scripts

A shell script is like a program for a shell,
i.e. a list of shell commands stored in a file.
The file must have executable rights.

Each shell (ksh, csh, tcsh, sh or bash) has slightly
different syntax and different commands.

The first line of a script specifies the shell: #!/bin/csh for a C-Shell Script #!/bin/bash for a Bash-Shell Script #!/usr/bin/perl for a Perl Script