On Tue, Sep 7, 2010 at 5:00 PM, Rudolf Sykora <rudolf.syk...@gmail.com> wrote:
> Hello,
>
> I want to 'print' the 'page' program, i.e. put /sys/src/cmd/page/* on paper.
> I want different files start on new pages, with the header of every
> page being the file name and the page.
> For this the command
> a=`{ls} pr $a | lp -dstdout > toprint.ps
> is almost ok.
> That 'almost' is in the fact that long lines get truncated, which is
> highly undesirable.
> fmt -j
> could help, but it also replaces spaces and tabs by a single space, again bad.
> (btw. why
> fmt <>afile
> doesn't work?)
>
> So how?
> Can anybody help? (I mean, is there a one-liner?)
> Thank you!
> Ruda
>
>

Run it through cb before you print it and give cb a length argument. I
did basically this same thing just the other day.

John
-- 
"With MPI, familiarity breeds contempt. Contempt and nausea. Contempt,
nausea, and fear. Contempt, nausea, fear, and .." -- Ron Minnich

Reply via email to