next up previous
Next: Variables Up: The Shell Script Previous: The Shell Script

The Basics

A script should start with a line
#!/bin/sh
Normally, '#' introduces a comment line in shell. However, #! is a special comment. It tells the shell that it is a script and should be run using the program sh (bourne shell) in the bin directory. A script in korn shell will start with the line
#!/bin/ksh
for example.



Instructional Support Group 2008-08-05