frosterrj Posted April 25, 2003 Report Share Posted April 25, 2003 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 Quote Link to comment Share on other sites More sharing options...
paul Posted April 25, 2003 Report Share Posted April 25, 2003 try typing <ctrl>L to clear the terminal or type clear Quote Link to comment Share on other sites More sharing options...
ramfree17 Posted April 25, 2003 Report Share Posted April 25, 2003 # man something | col -b > sometextfileforlateruse if i missed something just check the manpage of col. ciao! Quote Link to comment Share on other sites More sharing options...
MoonChild Posted April 25, 2003 Report Share Posted April 25, 2003 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! Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted April 25, 2003 Report Share Posted April 25, 2003 To exit the man page, just hit q Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.