This commit is contained in:
sylvestre
2023-07-12 03:05:36 +00:00
parent b85b8ba4ea
commit 384d490730
4 changed files with 30 additions and 2 deletions
+14
View File
@@ -5310,6 +5310,20 @@ process).</p>
<p>use NUMBER columns for line numbers</p>
</dd>
</dl>
<p><code>STYLE</code> is one of:</p>
<ul>
<li><code>a</code> number all lines</li>
<li><code>t</code> number only nonempty lines</li>
<li><code>n</code> number no lines</li>
<li><code>pBRE</code> number only lines that contain a match for the basic regular
expression, <code>BRE</code></li>
</ul>
<p><code>FORMAT</code> is one of:</p>
<ul>
<li><code>ln</code> left justified, no leading zeros</li>
<li><code>rn</code> right justified, no leading zeros</li>
<li><code>rz</code> right justified, leading zeros</li>
</ul>
<h2 id="examples-53"><a class="header" href="#examples-53">Examples</a></h2>
<p>Number non-blank lines in a file:</p>
<pre><code class="language-shell">nl {{path/to/file}}
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+14
View File
@@ -257,6 +257,20 @@
<p>use NUMBER columns for line numbers</p>
</dd>
</dl>
<p><code>STYLE</code> is one of:</p>
<ul>
<li><code>a</code> number all lines</li>
<li><code>t</code> number only nonempty lines</li>
<li><code>n</code> number no lines</li>
<li><code>pBRE</code> number only lines that contain a match for the basic regular
expression, <code>BRE</code></li>
</ul>
<p><code>FORMAT</code> is one of:</p>
<ul>
<li><code>ln</code> left justified, no leading zeros</li>
<li><code>rn</code> right justified, no leading zeros</li>
<li><code>rz</code> right justified, leading zeros</li>
</ul>
<h2 id="examples"><a class="header" href="#examples">Examples</a></h2>
<p>Number non-blank lines in a file:</p>
<pre><code class="language-shell">nl {{path/to/file}}