[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using pr to process file with long lines, then print
From: |
Bob Proulx |
Subject: |
Re: using pr to process file with long lines, then print |
Date: |
Wed, 2 Apr 2003 23:47:32 -0700 |
User-agent: |
Mutt/1.3.28i |
Mark Vytlacil wrote:
> Most often I use pr to format text files or source code before
> sending them to my 80 column ink jet printer. Many of these files
> have lots of lines > 72 (or 80) chars long and I don't want to
> truncate or bother to edit the file to fit my printer. The printer
> wraps the long line to the next line, but that means that pr's page
> length won't fit on the printer's page anymore, so I get an extra
> page with no header and only a few lines. This seems stupid to me.
You might consider looking into using 'fold'. Here is an example.
fold filetoprint.txt | pr
Bob