[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Linux Man => DOS Text



Tomas Petersson wrote:
> 
> Hello, how can I convert man pages to DOS-text
> so I can print them from my NT.
> If I just pipe to a file I get a lot of unwanted
> characters, is there a utiliy for this?

You can turn a manual into a postscript file with the -t option:

man -t ls > ls.ps

gives you a postscript file with a nicely formatted copy of the ls man
page.  If you printer doesn't understand postscript, you can use gs to
convert to your printer's native format, e.g.

man -t ls | gs -q -sDEVICE=laserjet -dSAFER -dNOPAUSE -sOutputFile=ls.prn -

(dont't forget the trailing '-').

This should give you a file `ls.prn' that can be printed on a laserjet.

Eric Meijer

-- 
 E.L. Meijer (tgakem@chem.tue.nl)          | tel. office +31 40 2472189
 Eindhoven Univ. of Technology             | tel. lab.   +31 40 2475032
 Lab. for Catalysis and Inorg. Chem. (TAK) | tel. fax    +31 40 2455054


--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: