[PLUG] man to text

dh at mda.huntbros.net dh at mda.huntbros.net
Wed Apr 17 01:15:43 UTC 2002


This substitutes a sed-command for man's default-pager, which is probably
less. It removes the pesky "character-backspace" pairs, and prints to
stdout without the equaly pesky page-break formatting.  Substitute the
name of the manpage you want for "manpage". You'll get extra points for
good punctuation.

	man -P 'sed "s/.`echo -ne ".\010"`//g" ${1}' manpage

It's ugly, but it works on my box.

-- 
David Hunt <dh at mda.huntbros.net>

On Tue, 16 Apr 2002, Michael Montagne wrote:

>Date: Tue, 16 Apr 2002 17:31:44 -0700
>From: Michael Montagne <montagne at boora.com>
>Reply-To: plug at lists.pdxlinux.org
>To: plug at lists.pdxlinux.org
>Subject: [PLUG] man to text
>
>How do I take a man manpage and convert it to text?
>





More information about the PLUG mailing list