[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Tool or How-To: Convert Man Pages to Text?



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]