Simply put, a Shell Script is a program that is run by a UNIX/Linux shell. It is a file that contains a series of commands which are executed sequentially as if they were entered on the command line ...
This article is reprinted from the book A Practical Guide to Linux Commands, Editors, and Shell Programming 3rd edition, with permission of the author and publisher ...