Skip to content

Commit d7ac89f

Browse files
committed
deploy: c249eba
1 parent dd65246 commit d7ac89f

File tree

4 files changed

+14
-32
lines changed

4 files changed

+14
-32
lines changed

user/print.html

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1793,23 +1793,14 @@ <h2 id="options-17"><a class="header" href="#options-17">Options</a></h2>
17931793
</dd>
17941794
</dl>
17951795
<h2 id="examples-15"><a class="header" href="#examples-15">Examples</a></h2>
1796-
<p>Cut out the first sixteen characters of each line of stdin:</p>
1797-
<pre><code class="language-shell">cut -c {{1-16}}
1796+
<p>Print a specific character/field range of each line:</p>
1797+
<pre><code class="language-shell">{{command}} | cut --{{characters|fields}}={{1|1,10|1-10|1-|-10}}
17981798
</code></pre>
1799-
<p>Cut out the first sixteen characters of each line of the given files:</p>
1800-
<pre><code class="language-shell">cut -c {{1-16}} {{file}}
1799+
<p>Print a range of each line with a specific delimiter:</p>
1800+
<pre><code class="language-shell">{{command}} | cut --delimiter=&quot;{{,}}&quot; --{{characters}}={{1}}
18011801
</code></pre>
1802-
<p>Cut out everything from the 3rd character to the end of each line:</p>
1803-
<pre><code class="language-shell">cut -c {{3-}}
1804-
</code></pre>
1805-
<p>Cut out the fifth field of each line, using a colon as a field delimiter (default delimiter is tab):</p>
1806-
<pre><code class="language-shell">cut -d'{{:}}' -f{{5}}
1807-
</code></pre>
1808-
<p>Cut out the 2nd and 10th fields of each line, using a semicolon as a delimiter:</p>
1809-
<pre><code class="language-shell">cut -d'{{;}}' -f{{2,10}}
1810-
</code></pre>
1811-
<p>Cut out the fields 3 through to the end of each line, using a space as a delimiter:</p>
1812-
<pre><code class="language-shell">cut -d'{{ }}' -f{{3-}}
1802+
<p>Print a range of each line of the specific file:</p>
1803+
<pre><code class="language-shell">cut --{{characters}}={{1}} {{path/to/file}}
18131804
</code></pre>
18141805
<blockquote>
18151806
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>

user/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

user/searchindex.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

user/utils/cut.html

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -226,23 +226,14 @@ <h2 id="options"><a class="header" href="#options">Options</a></h2>
226226
</dd>
227227
</dl>
228228
<h2 id="examples"><a class="header" href="#examples">Examples</a></h2>
229-
<p>Cut out the first sixteen characters of each line of stdin:</p>
230-
<pre><code class="language-shell">cut -c {{1-16}}
229+
<p>Print a specific character/field range of each line:</p>
230+
<pre><code class="language-shell">{{command}} | cut --{{characters|fields}}={{1|1,10|1-10|1-|-10}}
231231
</code></pre>
232-
<p>Cut out the first sixteen characters of each line of the given files:</p>
233-
<pre><code class="language-shell">cut -c {{1-16}} {{file}}
232+
<p>Print a range of each line with a specific delimiter:</p>
233+
<pre><code class="language-shell">{{command}} | cut --delimiter=&quot;{{,}}&quot; --{{characters}}={{1}}
234234
</code></pre>
235-
<p>Cut out everything from the 3rd character to the end of each line:</p>
236-
<pre><code class="language-shell">cut -c {{3-}}
237-
</code></pre>
238-
<p>Cut out the fifth field of each line, using a colon as a field delimiter (default delimiter is tab):</p>
239-
<pre><code class="language-shell">cut -d'{{:}}' -f{{5}}
240-
</code></pre>
241-
<p>Cut out the 2nd and 10th fields of each line, using a semicolon as a delimiter:</p>
242-
<pre><code class="language-shell">cut -d'{{;}}' -f{{2,10}}
243-
</code></pre>
244-
<p>Cut out the fields 3 through to the end of each line, using a space as a delimiter:</p>
245-
<pre><code class="language-shell">cut -d'{{ }}' -f{{3-}}
235+
<p>Print a range of each line of the specific file:</p>
236+
<pre><code class="language-shell">cut --{{characters}}={{1}} {{path/to/file}}
246237
</code></pre>
247238
<blockquote>
248239
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>

0 commit comments

Comments
 (0)