< Previous | Contents | Next >
21 – Formatting Output
In this chapter, we continue our look at text-related tools, focusing on programs that are used to format text output, rather than changing the text itself. These tools are often used to prepare text for eventual printing, a subject that we will cover in the next chapter. The programs that we will cover in this chapter include:
● nl – Number lines
● fold – Wrap each line to a specified length
● fmt – A simple text formatter
● pr – Prepare text for printing
● printf – Format and print data
● groff – A document formatting system