LinuxCommandLibrary

grog

Groff command-line option guesser

TLDR

Guess groff options

$ grog [file.roff]
copy
Process and run groff
$ grog [file.roff] | sh
copy
Show command without running
$ grog [file.roff]
copy
Process multiple files
$ grog [file1.roff] [file2.roff]
copy

SYNOPSIS

grog [options] [files]

DESCRIPTION

grog analyzes roff input files and suggests the appropriate groff command line. It detects which macro packages and preprocessors are needed by examining document content for macro usage.
The tool outputs the complete groff command with correct options, which can be piped to a shell for execution.

PARAMETERS

FILES

Files to analyze.
-C
Compatibility mode.
--run
Execute the suggested command.
--warnings
Enable warnings.
--help
Display help information.

CAVEATS

Part of groff package. May not detect all requirements. Suggestions should be verified.

HISTORY

grog was developed as part of GNU groff to simplify determining the correct options for complex documents.

SEE ALSO

groff(1), nroff(1), troff(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community