From owner-freebsd-questions Mon Sep 2 17:57:51 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 75FB437B401 for ; Mon, 2 Sep 2002 17:57:44 -0700 (PDT) Received: from mail.XtremeDev.com (xtremedev.com [216.241.38.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id E97DC43E6E for ; Mon, 2 Sep 2002 17:57:43 -0700 (PDT) (envelope-from bsd@xtremedev.com) Received: from xtremedev.com (xtremedev.com [216.241.38.65]) by mail.XtremeDev.com (Postfix) with ESMTP id D801370601; Mon, 2 Sep 2002 18:57:37 -0600 (MDT) Date: Mon, 2 Sep 2002 18:57:37 -0600 (MDT) From: bsd@xtremedev.com X-X-Sender: dave@Amber.XtremeDev.com To: "M.T." Cc: Lee , David Banning , Subject: Re: how to get an ascii man page In-Reply-To: <20020902175205.K69871-100000@atlas.home> Message-ID: <20020902185621.S9698-100000@Amber.XtremeDev.com> 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 man pages are searchable as is. Ie., man ls Then hit /, and type the term you are looking for. Same as in vi/ed. On Mon, 2 Sep 2002, M.T. wrote: > On Mon, 2 Sep 2002, Lee wrote: > > > 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. > > Or use "col -b". See col(1) -- it was created for this very purpose :) > > $.02, > /Mikko > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message