Preparing to Print with pr

Although old-fashioned line printers—those obnoxiously loud ones that clatter out character by character, or the dot-matrix printers that zing out line after line—aren’t terribly easy to find anymore, the pr command is finding new life in the age of the Internet.

Why? Well, nothing says email as quickly, easily, effectively, and safely as plain text. Plain text attaches no viruses. Plain text works in every email system, including handheld computers, and the like. Plain text works great—often better than a word processor— for one-off messages, pages, and short documents that just don’t merit firing up a full-blown word processor. Code Listing 6.22 shows an example of text processed with pr.

To Process with pr:

  • pr ...

Get Unix Third Edition: Visual Quickstart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.