On Tue, Aug 22, 2000 at 03:10:40PM +0300, Leonid Mamtchenkov wrote:

> 1. For printing messages I am using "pr -o 4 -W 72 | lpr".  The problem is
> that it does not wrap the long lines, but trancate them, which is not a
> good thing.  Maybe someone figured out the way to print nicely long lines.
> (Yeah, I guess, this question is not very much for mutt mailing list, but
> don't know where else to write).  As an alternative to pr, I have tried
> a2ps, but pr looks better ;-)

Use 'fold' as the first command in your printing pipeline, e.g.,
"fold -w 72 | pr -o 4 | lpr".

 fold(1)                                                             fold(1)

 NAME
      fold - fold long lines for finite width output device

 SYNOPSIS
      fold [-b] [-s] [-w width] [file ...]

 ...

 STANDARDS CONFORMANCE
      fold: XPG4, POSIX.2

-- 
Gary Johnson                 | Agilent Technologies
[EMAIL PROTECTED]     | RF Communications Product Generation Unit
                             | Spokane, Washington, USA

Reply via email to