From owner-freebsd-questions@FreeBSD.ORG Thu Sep 8 17:55:23 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 914A216A41F for ; Thu, 8 Sep 2005 17:55:23 +0000 (GMT) (envelope-from ertr1013@student.uu.se) Received: from pne-smtpout2-sn2.hy.skanova.net (pne-smtpout2-sn2.hy.skanova.net [81.228.8.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CC2A43D4C for ; Thu, 8 Sep 2005 17:55:22 +0000 (GMT) (envelope-from ertr1013@student.uu.se) Received: from falcon.midgard.homeip.net (212.181.162.201) by pne-smtpout2-sn2.hy.skanova.net (7.2.060.1) id 42B94E2900D21F9A for freebsd-questions@freebsd.org; Thu, 8 Sep 2005 19:55:21 +0200 Received: (qmail 20288 invoked by uid 1001); 8 Sep 2005 19:55:19 +0200 Date: Thu, 8 Sep 2005 19:55:19 +0200 From: Erik Trulsson To: Stijn Hoop , Giorgos Keramidas , Gerard Seibert , freebsd-questions Message-ID: <20050908175519.GA20222@falcon.midgard.homeip.net> Mail-Followup-To: Stijn Hoop , Giorgos Keramidas , Gerard Seibert , freebsd-questions References: <43206857.1010803@daleco.biz> <20050908165328.GB37407@orion.daedalusnetworks.priv> <20050908173646.GO20229@pcwin002.win.tue.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050908173646.GO20229@pcwin002.win.tue.nl> User-Agent: Mutt/1.5.9i Cc: Subject: Re: Printing MAN pages X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2005 17:55:23 -0000 On Thu, Sep 08, 2005 at 07:36:46PM +0200, Stijn Hoop wrote: > On Thu, Sep 08, 2005 at 07:53:28PM +0300, Giorgos Keramidas wrote: > > Gerard Seibert wrote: > > > I am trying to figure out how to print 'man' pages. If I try a simple > > > redirect, such as: "man foo > foo.txt" the new file is loaded with > > > control symbols, etc. that are not really printable. I want to save > > > the files if possible, and print them out at a later date. It that is > > > not possible, how would I go about printing them out in real time? > > > > man -t foo > foo.ps > > > > will generate Postscript output, which is a lot better for printing. > > Highly useful to know, but shouldn't we update the man page for man(1)? > > -t Use /usr/bin/groff -S -man to format the manual page, passing > the output to stdout. The output from /usr/bin/groff -S -man > may need to be passed through some filter or another before > being printed. > > This does not exactly spell 'output postscript' to me... It does if you know that postscript is the default output format of groff. If one doesn't know what format groff outputs by default, it is easily learned by reading the groff(1) manpage. -- Erik Trulsson ertr1013@student.uu.se