9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] how to print a program
@ 2010-09-07 21:00 Rudolf Sykora
  2010-09-07 21:05 ` Rudolf Sykora
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Rudolf Sykora @ 2010-09-07 21:00 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-09-08 19:16 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-07 21:00 [9fans] how to print a program Rudolf Sykora
2010-09-07 21:05 ` Rudolf Sykora
2010-09-07 21:06 ` John Floren
2010-09-07 21:37   ` Rudolf Sykora
2010-09-07 21:48     ` erik quanstrom
2010-09-08  6:25   ` Rudolf Sykora
2010-09-08  7:08     ` Lawrence E. Bakst
2010-09-08 17:59       ` erik quanstrom
2010-09-08 18:42       ` Akshat
2010-09-08 19:16         ` Charles Forsyth
2010-09-07 21:19 ` erik quanstrom
2010-09-08 11:45 ` roger peppe
2010-09-08 13:55   ` Federico G. Benavento

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).