deroff (删除nroff,troff,tbl和eqn构造)

瑞兹 发表于 2021-01-10 15:51
浏览次数:
在手机上阅读

在类似Unix的操作系统上,deroff命令删除nroff,troff,tbl和eqn构造。

查看英文版

目录

1 deroff 运行系统环境

2 deroff 描述

3 deroff 语法

4 deroff

deroff 运行系统环境

Unix&Linux

deroff 描述

deroff依次读取每个文件名,并删除所有troff请求,宏调用,反斜杠构造,eqn构造(.EQ.EN行之间以及定界符之间)和tbl描述,并用空格(空白和空白)替换它们行),然后将文件的其余部分写到标准输出中。deroff遵循包含文件的链(.so.nx troff命令);如果已经包含文件,则将忽略该文件的.so命名,而.nx命名该文件将终止执行。如果未提供输入文件,则deroff读取标准输入。
deroff reads each of the file names in sequence and removes all troff requests, macro calls, backslash constructs, eqn constructs (between .EQ and .EN lines, and between delimiters), and tbl descriptions, replacing them with white space (blanks and blank lines), and writes the remainder of the file on the standard output. deroff follows chains of included files (.so and .nx troff commands); if a file has already been included, a .so naming that file is ignored and a .nx naming that file terminates execution. If no input file is given, deroff reads the standard input.

查看英文版

查看中文版

deroff 语法

deroff [ -m [m | s | l ] ] [ -w ] [ -i ] [ file name ... ]

选件

-m [ m | s|l] -m选项之后可以是一个ms,或l。该-mm选项会解释宏使得只有运行的文本输出(即不从宏观线。文本)的-ml选项强制-mm选项,并且还导致与相关联的列表删除毫米宏。
-w 如果指定了-w选项,则输出为单词列表,每行一个“单词”,所有其他字符均被删除。否则,输出将跟随原始输出,并带有上述删除项。在文本中,一个“字”是包含至少两个字母和由字母,数字,符号(任何字符串)和撇号('); 但是,在宏调用中,“单词”是一个至少以两个字母开头并且总共包含至少三个字母的字符串。分隔符是除字母,数字,撇号和“&”号以外的任何字符。尾随撇号和“与”号从“单词”中删除。
-i -i选项的原因deroff将忽略。所以.nx命令。
deroff [ -m [m | s | l ] ] [ -w ] [ -i ] [ file name ... ]

Options

-m [ m | s | l ] The -m option may be followed by an ms, or l. The -mm option causes the macros to be interpreted so that only running text is output (that is, no text from macro lines.) The -ml option forces the -mm option and also causes deletion of lists associated with the mm macros.
-w If the -w option is given, the output is a word list, one "word" per line, with all other characters deleted. Otherwise, the output follows the original, with the deletions mentioned above. In text, a "word" is any string that contains at least two letters and is composed of letters, digits, ampersands (&), and apostrophes ('); in a macro call, however, a "word" is a string that begins with at least two letters and contains a total of at least three letters. Delimiters are any characters other than letters, digits, apostrophes, and ampersands. Trailing apostrophes and ampersands are removed from "words."
-i The -i option causes deroff to ignore .so and .nx commands.

查看英文版

查看中文版

deroff

deroff myfile.txt

删除文件myfile.txt中的构造

deroff myfile.txt

Remove constructs in the file myfile.txt.

查看英文版

查看中文版

其他命令行

date | du | dpost | dmesg | dirname | dircmp | dd | deluser | depmod | df | dhclient | diff | dos2unix | dig |

如此好文,分享给朋友
发表评论
验证码:
评论列表
共0条