manstrip

strip the unprintable sequences out of online reference pages 

Command


SYNOPSIS

manstrip [infile [outfile]]


DESCRIPTION

The manstrip utility reads text, strips it of any ANSI color escape escape sequences and ^H control sequences, and writes it back out.

When infile is specified, the text is read from the specified file instead of the default standard input (for example, from redirected output or a pipe). When outfile is also specified, the stripped text is written to the specified file instead of the default standard output. The manstrip utility reads text from the specified file and writes that text to standard output. When you specify - for infile or outfile, manstrip reads input text from the standard input or writes the stripped text to the standard output.

This command can be used to produce standard text versions of the online text reference pages for printing.


EXAMPLE

To convert the sh reference page to a regular text file, use one of the following commands:

man 1 sh | manstrip > sh.txt
manstrip $ROOTDIR/etc/cat1/sh.1.txt sh.txt

DIAGNOSTICS

Possible exit status values are:

0 

Successful completion.

1 

An error occurred.

2 

Invalid command line.


PORTABILITY

Windows 2000. Windows XP. Windows Server 2003. Windows Vista. Windows 7. Windows Server 2008. Windows 8. Windows Server 2012.


AVAILABILITY

MKS Toolkit for Power Users
MKS Toolkit for System Administrators
MKS Toolkit for Developers
MKS Toolkit for Interoperability
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
MKS Integrity


SEE ALSO

Commands:
man


MKS Toolkit 9.5 Documentation Build 3.