How do I direct man output to a plain text file

How do I direct man output to a plain text file

Post by Shayne G. Wrig » Thu, 09 May 1996 04:00:00



        Hi

                Is it possible to direct the output of the man command
        into have file, but I want the file to be plain text i.e.
        can be read normally with vi.  I've done a man man, but I
        didn't see something that would do what I want, at least not
        on the SGI machine.  Any work arounds ?

                                Take Care
                                Shayne

 
 
 

How do I direct man output to a plain text file

Post by Shawn D. McPe » Thu, 09 May 1996 04:00:00



:
:               Is it possible to direct the output of the man command
:       into have file, but I want the file to be plain text i.e.
:       can be read normally with vi.  I've done a man man, but I
:       didn't see something that would do what I want, at least not
:       on the SGI machine.  Any work arounds ?

man <whatever> | col -bx > file

That's what I use.

 
 
 

How do I direct man output to a plain text file

Post by ecb2_ » Thu, 09 May 1996 04:00:00


you could try man ????? >  output.textfile

this should redirect standard output to the output.textfile

 
 
 

How do I direct man output to a plain text file

Post by Robert D. Schrep » Thu, 09 May 1996 04:00:00


I use nroff to do what you want to do.  Type:

nroff -man /<path_to_manfile_directory>/<man_file> >output_file

That should produce an ascii version of the man page.  Example:

nroff -man /usr/man/man1/pgp.1 >pgp_man.ascii



Quote:>    Hi

>            Is it possible to direct the output of the man command
>    into have file, but I want the file to be plain text i.e.
>    can be read normally with vi.  I've done a man man, but I
>    didn't see something that would do what I want, at least not
>    on the SGI machine.  Any work arounds ?

>                            Take Care
>                            Shayne

--


 
 
 

How do I direct man output to a plain text file

Post by James V. Silvert » Thu, 09 May 1996 04:00:00



:       Hi
:
:               Is it possible to direct the output of the man command
: to a file that can be read normally with vi.  (Slight modification)    

I have a perl script, written by Rick Troxel at NIH which seems to work
very well to do what you want. Let me know and I'll send it to you.
Jim.
--

                   301-496-1515 (OFFICE)    301-402-3404 (FAX)
    NHLBI/LBC, 10/7N-307, 10 CENTER DR MSC 1676, BETHESDA MD 20892-1676  

 
 
 

How do I direct man output to a plain text file

Post by Bill Marc » Thu, 09 May 1996 04:00:00


man col

--

On 22 July, 1996, at 6:00 pm GMT, everyone in the world    
just START HUMMING.  Those who don't know will freak.      

 
 
 

How do I direct man output to a plain text file

Post by Ronan Kel » Fri, 10 May 1996 04:00:00


:         Is it possible to direct the output of the man command
:     into have file, but I want the file to be plain text i.e.
:     can be read normally with vi.  
    If linux has it, try using 'col(1)' with the '-b' option.
    As in: man thing | col -b > /tmp/thing.man
        Else, try 'tr -d pattern' to strip out the backspace characters.
--
+-----------------------------------------------+----------------------------+
| Rumours persist that Kelly is alive.          | Ronan Kelly at Xsoft EDV   |
| But conclusive proof has not been obtained.   | Project Manager            |

| report to the relevant authorities.           |   Tel: (+43) 1-7129317-26. |
+-----------------------------------------------+----------------------------+

 
 
 

How do I direct man output to a plain text file

Post by Tad McClell » Fri, 10 May 1996 04:00:00



:               Is it possible to direct the output of the man command
:       into have file, but I want the file to be plain text i.e.
:       can be read normally with vi.  I've done a man man, but I
:       didn't see something that would do what I want, at least not
:       on the SGI machine.  Any work arounds ?

man my_cmd | col -b >my_cmd.man.clean

--
  Tad McClellan,      Logistics Specialist (IETMs and SGML guy)

  Interesting trivia: If you took all the sand in North Africa and spread
     it out... it would cover the Sahara desert.

 
 
 

How do I direct man output to a plain text file

Post by Charles C. Abne » Fri, 10 May 1996 04:00:00



> >         Hi
>         Is it possible to direct the output of the man command
>         into have file, but I want the file to be plain text i.e.
>                                 Shayne

Try using more or less to view the file. Or use aps-filter to convert it
to ASCII.

Filler space (a mismanaged newsserver)

ciao
-Chuck

 
 
 

How do I direct man output to a plain text file

Post by Dot Jame » Sat, 11 May 1996 04:00:00



>                 Is it possible to direct the output of the man command
>         into have file, but I want the file to be plain text i.e.
>         can be read normally with vi.

man command_name | col -b > file_name

--
Dot James in San Jose, CA      "The secret of happiness is not doing


http://www.rahul.net/dotjames

 
 
 

How do I direct man output to a plain text file

Post by David A. Lyon » Wed, 15 May 1996 04:00:00



>         Hi

>                 Is it possible to direct the output of the man command
>         into have file, but I want the file to be plain text i.e.
>         can be read normally with vi.  I've done a man man, but I
>         didn't see something that would do what I want, at least not
>         on the SGI machine.  Any work arounds ?

>                                 Take Care
>                                 Shayne

man "item" | col -b > filename
vi filename

D Lyons

"[Bill Clinton] has kept the promises he meant to keep."
     --GEORGE STEPHANOPOLOUS, CNN'S "LARRY KING LIVE,"
       2/15/96

 
 
 

How do I direct man output to a plain text file

Post by Daniel-Marian Baboi » Thu, 16 May 1996 04:00:00



>   Is it possible to direct the output of the man command
>into have file, but I want the file to be plain text i.e.
>can be read normally with vi.  I've done a man man, but I
>didn't see something that would do what I want, at least not
>on the SGI machine.  Any work arounds ?

I usually redirect the output of 'man' where I want (to the printer
with |lpr or to a file with >filename) Usually the printer takes care of
special characters for bold or underlined characters, but you will get
them in the file. This is a sample of how I can get a plain text:

man man >a.txt
emacs a.txt
M-x replace-regexp RET \(.\)^H\1 RET \1 RET
HOME
M-x replace-regexp RET _^H\(.\) RET \1 RET

Here M-x stands for Alt-x (or Esc x on some systems); ^H stands for
Control-H (typed as ^q^h in Emacs), RET is the return key and the HOME
key gets you back at the beginning of the document (in case you are not
familiar with Emacs). The first replacement eliminates the overstroke
(bold) characters, the second of underlined cahracters. I suppose that
there is way of eliminating the control characters using vi or a program
likr sed, but I don't know how (at least for now)  

--

-------------------------------------------------
Daniel-Marian Baboiu
University of Central Florida / CREOL
4000 Central Florida Blvd
Orlando, FL 32816-2700
407-823-6919       Fax: 407-823-6955

--------------------------------------------------

 
 
 

How do I direct man output to a plain text file

Post by Tony Nugen » Thu, 16 May 1996 04:00:00



Quote:>:           Is it possible to direct the output of the man command
>: to a file that can be read normally with vi.  (Slight modification)    
>I have a perl script, written by Rick Troxel at NIH which seems to work
>very well to do what you want. Let me know and I'll send it to you.

I'd like to have a look at that.

Meanwhile, here are some tcsh aliases that I sometimes use:

# nroff and troff aliases - man pages etc.
alias fman  'man \!:1 | col -b > \!:1.man'
alias lman  'tbl \!:1 | nroff -man | less'
alias flman 'tbl \!:1 | nroff -man | col -b > \!:1.man'
alias mann  'man \!:1|awk "NR<=8||(NR%66>=8&&NR%66<=60)"|col -b|uniq>\!:1.man'
alias mans  'man \!:1|awk "NR<=8||(NR%66>=8&&NR%66<=60)"|col -b|uniq'
alias pman  'tbl \!:1 | troff -t -man -Tman | lpr -t'

Cheers
Tony
  _      ___   _  _                        _                               _
 (:)====/__/\=(:)(:)======================(:)=============================(:)


 |\| /  /\  __/\|(:)======================(:)=============================(:)
 |=|/  / /\ \ |=||=|  "There are three kinds of lies: lies, damn lies,    |=|
 |\/__/  \_\/ |\||\|   and statistics."                                   |\|
 |=\__\/\ \   |=||=|                                - Mark Twain          |=|
 (:)==\__\/===(:)(:)======================================================(:)
  ~            ~  ~                                                        ~

 
 
 

How do I direct man output to a plain text file

Post by paul.d.fink » Fri, 17 May 1996 04:00:00




Quote:>    Hi

>            Is it possible to direct the output of the man command
>    into have file, but I want the file to be plain text i.e.
>    can be read normally with vi.  I've done a man man, but I
>    didn't see something that would do what I want, at least not
>    on the SGI machine.  Any work arounds ?

On UNIXV, try this:

man lp|deroff >lp_info.txt

The "deroff" command will remove the "roff" (troff) stuff.
--
Do unto others ... then split!
                                                                MaryAnne Stasium

 
 
 

How do I direct man output to a plain text file

Post by Marc Ant » Thu, 23 May 1996 04:00:00


Anyone know what I did when I issued the following command:

man -t screen | groff -Tps -mandoc

I got a lot of errors - I hope I didn't*anything up.

Thanks.

-Marc

 
 
 

1. How to redirect man page to plain text file?

Hi,

   Does anyone know how to redirect the man page to a
plain text file? I tried it with "man stat>temp.txt"
and the temp.txt file contains text formatting escape
sequences. I would like all escape sequences to be
stripped off!

Your help is greatly appreciated.

                             David

2. Kernel compile problem

3. output of man command to a text file

4. IPMI Selftest details

5. Clean man output to text file

6. System Commander vs Boot Manager vs Lilo

7. Dos Text Files to Linux Text Files

8. solaris and winnt&95

9. conver dos text file to unix text file

10. HLP: man script -> plain text

11. man.page.to.plain.text.method

12. plain text man pages

13. man pages in plain text