Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 May 2000 16:10:09 +0200
From:      =?iso-8859-1?Q?P=E5l_Sommerhein?= <pms@chello.no>
To:        "Dimitrios T." <midios3@hotmail.com>
Cc:        freebsd-newbies@FreeBSD.ORG
Subject:   Re: I've tried them all. They all work :)
Message-ID:  <20000523161009.A1150@chello.no>
In-Reply-To: <20000523133922.31498.qmail@hotmail.com>; from midios3@hotmail.com on Tue, May 23, 2000 at 01:39:22PM %2B0000
References:  <20000523133922.31498.qmail@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, May 23, 2000 at 01:39:22PM +0000, Dimitrios T. wrote:
>
> >keramida@ceid.upatras.gr suggested:
> >% man sh | sed -e 's/.^H//g' > sh.txt

Alternatively you could use

	man sh | col -b > sh.txt

which produces the exact same result (verified by using diff).

To read a man page into a document from within vi use

	:r! man sh | col -b

which is pretty handy when you want to include extracts from manpages
like the following from col(1)


NAME
     col - filter reverse line feeds from input

[...]

     -b        Do not output any backspaces, printing only the last
               character written to each column position.

-- 
Pål Sommerhein


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-newbies" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000523161009.A1150>