[Gllug] Flavours end - Linux begins?

Stephen Harker steve at pauken.co.uk
Mon Nov 18 11:56:54 UTC 2002


Tethys wrote:
> Stephen Harker writes:
> 
> 
>>to format the man page for "command" ready for a printer. You then pipe 
>>it to the lpr command that prints it out.
>>So...
>>
>># man -t ls | lpr
> 
> 
> Bleugh. Suitable for line printers, yes, but virtually all printers these
> days are capable of more than plain text. Pass the man page though groff
> to get PostScript output:
> 
> 	zcat /usr/share/man/man1/ls.1.gz | groff -man | lpr

Errmm. To quote the man page for man...


" -t     Use '/usr/bin/groff -Tps -mandoc -c' to format the manual page, 
passing the output to stdout.  The  output  from  '/usr/bin/groff -Tps 
-mandoc  -c'  may  need to be passed through some filter or another 
before being printed."

Which when I've done it in the past produces nice Postscript output to 
the printer.

Steve


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list