Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Sep 2002 18:40:11 -0400 (EDT)
From:      Lee <sfpnkpu@scfn.thpl.lib.fl.us>
To:        David Banning <david@skytrackercanada.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: how to get an ascii man page
Message-ID:  <Pine.GSO.3.95.1020902183037.21449D-100000@scfn>
In-Reply-To: <20020902011230.A5769@skytrackercanada.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On Mon, 2 Sep 2002, David Banning wrote:

> I would like to do a "man ls > lsmanpagefile" but I find that is has
> a lot of control characters in the text. Any idea how I can lose it?
> 
> I really just want to search a man page for a specific term, so I don't have
> to read the whole man page looking for the area I am interested in.
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 
sed can produce a readable, printable manpage-file:
% man <whatever> | sed s/.\CTRL-V CTRL-H//g > <whatever>.txt
 has sed remove any charater followed by CTRL-H , and the 
 CTRL-H itself. The CTRL-V escapes the CTRL-H on the command
 line(no space between the two).
the output could be piped to grep <keyword> for further 
filtering.
  


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.95.1020902183037.21449D-100000>