-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

The Ultimate Linux Shell Scripting Guide
By :

You’ve been working hard, using various text-stream filters to extract meaningful data from your text files, and creating formatted reports. Now, it’s time to make that hard work pay off by committing your work to paper. Sure, you can print your files without using pr
. But for a nice professional look, pr
can give you just the right finishing touch.
With pr
, you can effortlessly prepare your files for printing by breaking them into pages, and by adding headers and page numbers. In that regard, it’s better than using a regular text editor. In fact, it’s almost like using a mini word processor. It also gives you other formatting options that text editors won’t give you. (You’ll see some examples in just a few moments.)
Once you’ve used pr
to perform your final formatting, you can print directly from the command-line by either piping pr
's output into the lpr
utility, or by invoking lpr
with your filename as an argument...