Skip to content

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


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


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

Back to Table of Contents

  1. License under CC BY-NC 4.0
  2. Copyright issue feedback, replace # with @
  3. Not all the commands and scripts are tested in production environment, use at your own risk
  4. No personal information is collected.