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 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022.


AVAILABILITY

PTC MKS Toolkit for Power Users
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC Windchill Requirements and Validation


SEE ALSO

Commands:
man


PTC MKS Toolkit 10.4 Documentation Build 39.