grog – guess options for groff command

A UNIX Command
$groff /usr/share/man/man7/pipe.7 | more
%!PS-Adobe-3.0
%%Creator: groff version 1.21
%%CreationDate: Fri Jul 15 18:18:46 2011
%%DocumentNeededResources: font Times-Roman
%%+ font Times-Bold
%%+ font Times-Italic
%%DocumentSuppliedResources: procset grops 1.21 0
%%Pages: 1
%%PageOrder: Ascend
%%DocumentMedia: Default 595 842 0 () ()
%%Orientation: Portrait
%%EndComments
%%BeginDefaults
%%PageMedia: Default
%%EndDefaults
%%BeginProlog
%%BeginResource: procset grops 1.21 0
%!PS-Adobe-3.0 Resource-ProcSet
/setpacking where{

$grog /usr/share/man/man7/pipe.7 | more
groff -man /usr/share/man/man7/pipe.7 
$groff -man /usr/share/man/man7/pipe.7 | more
%!PS-Adobe-3.0
%%Creator: groff version 1.21
%%CreationDate: Fri Jul 15 18:22:07 2011
%%DocumentNeededResources: font Times-Roman
%%+ font Times-Bold
%%+ font Times-Italic
%%DocumentSuppliedResources: procset grops 1.21 0
%%Pages: 2
%%PageOrder: Ascend
%%DocumentMedia: Default 595 842 0 () ()
%%Orientation: Portrait
%%EndComments
%%BeginDefaults
%%PageMedia: Default
%%EndDefaults
%%BeginProlog
%%BeginResource: procset grops 1.21 0
%!PS-Adobe-3.0 Resource-ProcSet

UNIX Explanation
grog reads  the input (file names or  standard input) and
guesses  which  of the  groff(1)  options  are needed  to
perform   the  input   with  the   groff   program.   The
corresponding groff command is outp

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s