Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
|
One of the important components of all Unix systems is the shell, which acts as a command processor as well as a programming language. We have chiefly seen it as a command processor in the previous chapters. As shell is a programming language too, one can write programs using it. Such programs are called shell programs. More often shell programs are referred to as shell scripts. This chapter primarily discusses how shell programs are written and executed. Many shell scripts that have been executed and tested have been included towards the end of this chapter.