From owner-freebsd-questions Mon Sep 2 15:40:43 2002 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 CCE6E37B4DD for ; Mon, 2 Sep 2002 15:40:27 -0700 (PDT) Received: from scfn.thpl.lib.fl.us (scfn.thpl.lib.fl.us [169.139.225.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1908343E3B for ; Mon, 2 Sep 2002 15:40:27 -0700 (PDT) (envelope-from sfpnkpu@scfn.thpl.lib.fl.us) Received: from localhost (sfpnkpu@localhost) by scfn.thpl.lib.fl.us (8.11.6/8.11.6) with SMTP id g82MeBn21837; Mon, 2 Sep 2002 18:40:12 -0400 (EDT) Date: Mon, 2 Sep 2002 18:40:11 -0400 (EDT) From: Lee X-Sender: sfpnkpu@scfn To: David Banning Cc: questions@FreeBSD.ORG Subject: Re: how to get an ascii man page In-Reply-To: <20020902011230.A5769@skytrackercanada.com> Message-ID: X-Organization: Suncoast Free-Net MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 | sed s/.\CTRL-V CTRL-H//g > .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 for further filtering. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message