The pr command is intended to format a file for printing. For example, let's say the file named foo.txt has the following content.
Hello World How are you today?
The PR command has a number of options to format the file. -n numbers the list, and -h adds a header named "Greetings".
pr -n -h "Greetings" foo.txt > bar.txt
There are a few different commands that can be used to sent print jobs to the printer.