LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Strange output from man page Fedora 12 (https://www.linuxquestions.org/questions/linux-newbie-8/strange-output-from-man-page-fedora-12-a-799086/)

madsovenielsen 03-31-2010 05:35 AM

Strange output from man page Fedora 12
 
Hey all.

When i try to "save" a man page as text i get really strange output

Code:

man ed > test.txt
Here is a snippet of the output:

Code:

NNAAMMEE
      ed, red - text editor

SSYYNNOOPPSSIISS
      ed [-GVhs] [-p _s_t_r_i_n_g] [_f_i_l_e]

      red [-GVhs] [-p _s_t_r_i_n_g] [_f_i_l_e]

DDEESSCCRRIIPPTTIIOONN
      eedd is a line-oriented text editor.  It is used to create, display, mod-
      ify and otherwise manipulate text files.  rreedd is a  restricted  eedd:  it
      can  only  edit files in the current directory and cannot execute shell
      commands.

Whats wrong ?

PMP 03-31-2010 05:37 AM

Are you able to see the man page correctly without redirecting it.

PMP 03-31-2010 05:44 AM

Try this
Code:

man ed | col -b > /tmp/ed.man

madsovenielsen 03-31-2010 06:29 AM

Yes the man pages are working like a charm :D its only occurring when i redirect to a file.

/mads

madsovenielsen 03-31-2010 06:30 AM

Great Success
 
Quote:

Originally Posted by PMP (Post 3918955)
Try this
Code:

man ed | col -b > /tmp/ed.man

Thansk that did the trick.

/mads

PMP 03-31-2010 06:55 AM

Please mark the thread as solved


All times are GMT -5. The time now is 04:38 PM.