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

Your email address will not be published. Required fields are marked *