vgrind
舞夕之 发表于 2020-07-25 06:01浏览次数:
在类Unix操作系统上,vgrind命令“研磨”程序清单,创建更吸引人的输出格式。
On Unix-like operating systems, the vgrind command "grinds" program listings, creating a more appealing output format.
目录:
1 vgrind 运行系统环境
2 vgrind 语法
3 vgrind 示例
vgrind 运行系统环境
vgrind 语法
vgrind [-2] [-f] [-n] [-t] [-w] [-W] [-x] [-d defs-file] [ -h header]
[-l language] [-s n] [-o pagelist] [ -P printer] [-T output-device]
filename
选项
-2
|
产生两列输出。指定此选项会将默认磅值更改为8(就像提供了-s8选项一样)。通过向格式器提供-L标志并相应地更改页面的高度和宽度,它还可以安排输出以横向模式显示。
|
-F
|
强制过滤器模式。
|
-n
|
不使关键字加粗。
|
-t
|
类似于troff中的相同选项;也就是说,格式化的文本进入标准输出。
|
-w
|
认为TAB字符间隔四列,而不是通常的八列。
|
-W
|
强制输出到(宽)Versatec打印机,而不是(窄)Varian。
|
-X
|
以“漂亮”格式输出索引文件。只要在当前目录中使用名为index的文件运行vgrind时,就会生成索引文件本身。的函数定义索引然后可以通过给被流掉vgrind把的-x选项和文件索引作为参数。
|
-d defs-file
|
指定备用语言定义文件(默认为/ usr / lib / vgrindefs)。
|
-h header
|
指定一个标题,使其出现在每个输出页面的中央。
|
-l language
|
指定要使用的语言。当前已知的语言包括:Bourne shell(-lsh),C(-lc,默认值),C ++(-lc ++),C shell(-lcsh),emacs MLisp(-lml),FORTRAN(-lf),Icon (-lI),ISP(-i),LDL(-lLDL),模型(-lm),Pascal(-lp)和RATFOR(-lr)。
|
-sn
|
指定要在输出上使用的磅值(与troff.ps磅值请求的参数完全相同)。
|
-o pagelist
|
仅打印其页码显示在数字和范围的逗号分隔页面列表中的那些页面。范围N-M表示页面N到M;初始-ñ从开始到页面装置Ñ;和最终ñ-手段从Ñ到最后。
|
-P printer
|
将输出发送到命名打印机。
|
-T output-device
|
格式化指定输出设备的输出。
|
filename
|
vgrind要处理的程序源的名称。使用“-”指定标准输入。
|
vgrind [-2] [-f] [-n] [-t] [-w] [-W] [-x] [-d defs-file] [ -h header]
[-l language] [-s n] [-o pagelist] [ -P printer] [-T output-device]
filename
Options
-2
|
Produces two-column output. Specifying this option changes the default point size to 8 (as if the -s8 option were supplied). It also arranges for output to appear in landscape mode, by supplying the -L flag to the formatter and changing the page height and width accordingly.
|
-f
|
Forces filter mode.
|
-n
|
Does not make keywords boldface.
|
-t
|
Similar to the same option in troff; that is, formatted text goes to the standard output.
|
-w
|
Considers TAB characters to be spaced four columns apart instead of the usual eight.
|
-W
|
Forces output to the (wide) Versatec printer rather than the (narrow) Varian.
|
-x
|
Outputs the index file in a "pretty" format. The index file itself is produced whenever vgrind is run with a file called index present in the current directory. The index of function definitions can then be run off by giving vgrind the -xoption and the file index as argument.
|
-d defs-file
|
Specify an alternate language definitions file (default is /usr/lib/vgrindefs).
|
-h header
|
Specify a header to appear in the center of every output page.
|
-l language
|
Specify the language to use. Among the languages currently known are: Bourne shell (-lsh), C (-lc, the default), C++ (-lc++), C shell (-lcsh), emacs MLisp (-lml), FORTRAN (-lf), Icon (-lI), ISP (-i), LDL (-lLDL), Model (-lm), Pascal (-lp), and RATFOR (-lr).
|
-s n
|
Specify a point size to use on output (exactly the same as the argument of a troff .ps point size request).
|
-o pagelist
|
Prints only those pages whose page numbers appear in the comma-separated pagelist of numbers and ranges. A range N-M means pages N through M; an initial -N means from the beginning to page N; and a final N- means from N to the end.
|
-P printer
|
Sends output to the named printer.
|
-T output-device
|
Formats output for the specified output-device.
|
filename
|
Name of the program source to be processed by vgrind. Use '-' to specify the standard input.
|
vgrind 示例
vgrind -t myfile.c | lpr -t
打印程序文件myfile.c的格式化列表。
vgrind -t myfile.c | lpr -t
print a formatted listing of the program file myfile.c.