DESCRIPTION
igor proofreads documentation files to detect problems. The goal is to make formatting and problem detection easier, allowing the writer to concentrate on the content.
Some tests can be performed on all files, while others are specific to
mdoc(7) or DocBook files.
igor uses
file(1) to detect a file's type and only runs the applicable tests on it.
Files compressed with
gzip(1) or
bzip(2) are automatically decompressed. If multiple files are specified, filenames are displayed before each is analyzed. If no files are given, input is read from stdin.
By default, all tests are performed. If options for individual tests are given, only those tests will be done. Several shortcut options make testing common combinations easier; see the
SHORTCUT OPTIONS section below.
EXAMPLES
Check
gpart.8.gz for all errors, showing them with ANSI highlights.
igor -R gpart.8.gz | less -R -S
Check
tuning.7.gz for all
mdoc(7) errors except document date (.Dt), then show a writing style analysis.
igor -R -D -y /usr/share/man/man7/tuning.7.gz | less -RS
Check a file from stdin, showing messages in plain text.
cat README | igor -R
Check a DocBook file for non-whitespace (content) errors.
igor -Rz chapter.xml | less -RS
Check the same DocBook file for only whitespace errors.
igor -RZ chapter.xml | less -RS
Check a file for all errors found on lines 829 through 1488.
igor -R -C 829:1488 chapter.xml | less -RS
Check all the English DocBook files.
igor -R `find /usr/doc/en_US.ISO8859-1/ -name "*.xml"` | less -RS
Check all the man pages in a directory, ignoring the document date.
igor -RD /usr/share/man/man8/* | less -RS