← 返回命令列表

Linux command

grog 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Guess groff options

grog [file.roff]

Process and run groff

grog [file.roff] | sh

Show command without running

grog [file.roff]

Process multiple files

grog [file1.roff] [file2.roff]

说明

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.

参数

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

FAQ

What is the grog command used for?

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.

How do I run a basic grog example?

Run `grog [file.roff]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -C do in grog?

Compatibility mode.