.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.5. .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH NL 1 2022年9月 "GNU coreutils 9.1" 用户命令 .SH 名称 nl \- 给文件编行号 .SH 概述 \fBnl\fP [\fI\,选项\/\fP]... [\fI\,文件列表\/\fP]... .SH 描述 .\" Add any additional description here .PP 将文件列表中的每一个文件输出到标准输出,并添加行号。 .PP 如果没有指定文件,或者指定文件为"\-",则从标准输入读取。 .PP 必选参数对长短选项同时适用。 .TP \fB\-b\fP, \fB\-\-body\-numbering\fP=\fI\,样式\/\fP use STYLE for numbering body lines .TP \fB\-d\fP, \fB\-\-section\-delimiter\fP=\fI\,CC\/\fP use CC for logical page delimiters .TP \fB\-f\fP, \fB\-\-footer\-numbering\fP=\fI\,样式\/\fP use STYLE for numbering footer lines .TP \fB\-h\fP, \fB\-\-header\-numbering\fP=\fI\,样式\/\fP use STYLE for numbering header lines .TP \fB\-i\fP, \fB\-\-line\-increment\fP=\fI\,数字\/\fP line number increment at each line .TP \fB\-l\fP, \fB\-\-join\-blank\-lines\fP=\fI\,数字\/\fP 将给定“数值”行连续的空行视为一行 .TP \fB\-n\fP, \fB\-\-number\-format\fP=\fI\,格式\/\fP 根据指定格式字符串插入行号 .TP \fB\-p\fP, \fB\-\-no\-renumber\fP do not reset line numbers for each section .TP \fB\-s\fP, \fB\-\-number\-separator\fP=\fI\,字符串\/\fP 如果可能的话,将指定字符串添加到行号后 .TP \fB\-v\fP, \fB\-\-starting\-line\-number\fP=\fI\,数字\/\fP 每一节第一行的行号 .TP \fB\-w\fP, \fB\-\-number\-width\fP=\fI\,数字\/\fP 为行号留出指定列的宽度 .TP \fB\-\-help\fP 显示此帮助信息并退出 .TP \fB\-\-version\fP 显示版本信息并退出 .PP Default options are: \fB\-bt\fP \fB\-d\fP'\e:' \fB\-fn\fP \fB\-hn\fP \fB\-i1\fP \fB\-l1\fP \fB\-n\fP'rn' \fB\-s\fP \fB\-v1\fP \fB\-w6\fP .PP CC are two delimiter characters used to construct logical page delimiters; a missing second character implies ':'. As a GNU extension one can specify more than two characters, and also specifying the empty string (\fB\-d\fP \*(rq) disables section matching. .PP 所指定的“样式”是下列之一: .TP a 对所有行进行编号 .TP t 只对非空行进行编号 .TP n 不进行编号 .TP pBRE 仅对匹配基本正则表达式 BRE 的行编号 .PP 格式字符串可以是下列字符串中的一个: .TP ln 左对齐,没有前导数字0 .TP rn 右对齐,没有前导数字0 .TP rz 右对齐,用前导数字0填充空白位 .SH 作者 由 Scott Bartram 和 David MacKenzie 编写。 .SH 报告错误 GNU coreutils 的在线帮助: .br 请向 报告翻译错误。 .SH 版权 Copyright \(co 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . .br 本软件是自由软件:您可以自由修改和重新发布它。在法律允许的范围内,不提供任何保证。 .SH 参见 完整文档请见: .br 或者在本地使用: info \(aq(coreutils) nl invocation\(aq .SH "跋" .br 本页面中文版由中文 man 手册页计划提供。 .br 中文 man 手册页计划:\fBhttps://github.com/man-pages-zh/manpages-zh\fR