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:
PORTABILITY
Windows 2000. Windows XP. Windows Server 2003. Windows Vista.
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 Source Integrity Standard
MKS Source Integrity Enterprise Edition
SEE ALSO
- Commands:
- man
MKS Toolkit 9.2 Documentation Build 16.