O'Reilly logo

The Linux Command Line by William E. Shotts Jr.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Second Stage: Adding a Little Data

Now that our program can generate a minimal document, let’s put some data in the report. To do this, we will make the following changes:

#!/bin/bash

# Program to output a system information page

echo ",<HTML,>
         <HEAD>
                <TITLE>System Information Report</TITLE>
         </HEAD>

         <BODY>
                <H1>System Information Report</H1>
         </BODY>
</HTML>"

We added a page title and a heading to the body of the report.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required