[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
using pr to process file with long lines, then print
From: |
Mark Vytlacil |
Subject: |
using pr to process file with long lines, then print |
Date: |
Wed, 02 Apr 2003 17:33:16 -0500 |
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.
I made a patch for pr so that when a line goes over the page width and is not
truncated it gets counted as a new line on the page. I would be happy to post
it here if anyone is interested. I would also be happy to hear why the
original behavior is not as stupid as I think.
Mark
- using pr to process file with long lines, then print,
Mark Vytlacil <=