[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Tool or How-To: Convert Man Pages to Text?
- From: Adam Procter <aprocter mail coin missouri edu>
- To: redhat-list redhat com
- Subject: Re: Tool or How-To: Convert Man Pages to Text?
- Date: Sat, 28 Aug 1999 22:47:06 -0500 (CDT)
On Sat, 28 Aug 1999, Chuck Mead wrote:
>
> Is there a tool or utility anywhere? All I've found is some OS/2 tools and C
> code. Anybody know of any? I've spent most of the day looking and not found a
> thing. Anybody......?
>
This seems to work for me:
#!/bin/bash
man $1 -P"perl -e 'while(<>) { s/.\010//g; print; }'" > $1.txt
(Was gonna just say man -Pcat, but it seems to like to stick backspaces in
the output stream...)
Adam Procter
aprocter mail coin missouri edu
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]