deroff

remove nroff/troff formatter commands, prepare word list 

Command


SYNOPSIS

deroff [-nw] [file ...]


DESCRIPTION

The deroff command removes all embedded formatting commands for text formatters compatible with troff or nroff. This involves removing lines beginning with a dot (.), expanding .so and .nx requests, and removing the most common escape sequences for font and size requests, and other troff or nroff directives. deroff writes the stripped text to the standard output.

-n 

is used with the -w option to make the word list include the file name and line number where each word was found in the input.

-w 

divides the stripped text into a sequence of words, one per line.


DIAGNOSTICS

Possible exit status values are:

0 

Successful completion.

1 

Failure due to any of the following:

— invalid command line option
— cannot open source file
— file nesting level too deep
— insufficient memory


PORTABILITY

All UNIX systems. Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022. Windows Server 2025.


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


SEE ALSO

Commands:
sort, uniq


PTC MKS Toolkit 10.5 Documentation Build 40.