From owner-freebsd-questions Mon Sep 2 17:54: 4 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 026EC37B405 for ; Mon, 2 Sep 2002 17:53:59 -0700 (PDT) Received: from mta7.pltn13.pbi.net (mta7.pltn13.pbi.net [64.164.98.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id B545043E6A for ; Mon, 2 Sep 2002 17:53:58 -0700 (PDT) (envelope-from mbsd@pacbell.net) Received: from atlas ([64.160.45.6]) by mta7.pltn13.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0H1U00CUC7TVVW@mta7.pltn13.pbi.net> for questions@FreeBSD.ORG; Mon, 02 Sep 2002 17:53:57 -0700 (PDT) Date: Mon, 02 Sep 2002 17:54:00 -0700 (PDT) From: "M.T." Subject: Re: how to get an ascii man page In-reply-to: X-X-Sender: mikko@atlas.home To: Lee Cc: David Banning , questions@FreeBSD.ORG Message-id: <20020902175205.K69871-100000@atlas.home> MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Content-transfer-encoding: 7BIT 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, 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