Jump to content

Not exactly programming, but a piping question...


Recommended Posts

Whenever I try to pipe (>) the output of a man page to a text file, I always get a bunch of crap as the output--a letter, a box, a letter, another symbol, etc.

 

I dont think I have a problem when I use the (>) on system commands like ls, rpm, etc.

 

Is there a way to get the output of man files readable?

 

also, how do I clear the terminal after issuing a man command? the only way I can get to the cl again is to open another terminal.

 

thanks,

Robert

Link to comment
Share on other sites

man output is not plain old ASCII

 

It has formatting (the squares you see)

 

Therefore the solution above should work to remove all the formatting thing.

 

Another note...

 

> Redirect output somewhere

| Pipe one command to another

 

There is a small difference, but it can be quite important. Check it out!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...