Starting with this chapter, we will begin to build a program. The purpose of this project is to see how various shell features are used to create programs and, more importantly, create good programs.
The program we will write is a report generator. It will present various statistics about our system and its status, and it will produce this report in HTML format so we can view it with a web browser.
Programs are usually built up in a series of stages, with each stage adding features and capabilities. The first stage of our program will produce a very minimal HTML page that contains no system information. That will come later.
The first thing we need to know is the format of a well-formed ...