Skip to content

Get a plain text of man page without backspaces and underscores on MacOS and BSD

homepage-banner

TL; DR

To get a plain text version of a man page, without backspaces and underscores, try

man foo | col -b > foo.mantxt
man foo | col -bx > foo.mantxt

explaination

-b      Do not output any backspaces, printing only the last character written to each column position.
-x      Output multiple spaces instead of tabs.
Feedback







Disclaimer
  • Welcome to visit the knowledge base of SRE and DevOps!
  • License under CC BY-NC 4.0
  • Made with Material for MkDocs and improve writing by generative AI tools
  • Copyright issue feedback me#imzye.com, replace # with @