• Post Reply Bookmark Topic Watch Topic
  • New Topic

man to cat or something  RSS feed

 
Zkr Ryz
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way, option, script or something so I can output the man pages to plain( readable )format.
like
%man -option man> man.txt
So I can print, email, etc man.txt as a common human readable text of file.?
does troff has an option like that ?
Regards Zkr
 
Greg Harris
Ranch Hand
Posts: 1012
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well, you can use the "script" command to save everything that is displayed to the window to be saved to a file... then you can email or print that file.
$ script whatever.txt
// starts the script file
$ man whateverManualFile
$ exit
// exits script file
now you can email or print the "whatever.txt" file
there is probably an easier way, but this is what i can come up with.
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The traditional way is to use the little-known "col" command to filter out the wierd stuff "man" adds:
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!