Skip to content

Commit 0db164f

Browse files
committed
deploy: 2ed80ff
1 parent b1c9a09 commit 0db164f

11 files changed

+46
-52
lines changed

user/print.html

+22-25
Original file line numberDiff line numberDiff line change
@@ -868,10 +868,10 @@ <h2 id="options-3"><a class="header" href="#options-3">Options</a></h2>
868868
</dl>
869869
<h2 id="examples-2"><a class="header" href="#examples-2">Examples</a></h2>
870870
<p>Encode a file:</p>
871-
<pre><code class="language-shell">base32 {{filename}}
871+
<pre><code class="language-shell">base32 {{path/to/file}}
872872
</code></pre>
873873
<p>Decode a file:</p>
874-
<pre><code class="language-shell">base32 --decode {{filename}}
874+
<pre><code class="language-shell">base32 --decode {{path/to/file}}
875875
</code></pre>
876876
<p>Encode from <code>stdin</code>:</p>
877877
<pre><code class="language-shell">{{somecommand}} | base32
@@ -929,10 +929,10 @@ <h2 id="options-4"><a class="header" href="#options-4">Options</a></h2>
929929
</dl>
930930
<h2 id="examples-3"><a class="header" href="#examples-3">Examples</a></h2>
931931
<p>Encode the contents of a file as base64 and write the result to <code>stdout</code>:</p>
932-
<pre><code class="language-shell">base64 {{filename}}
932+
<pre><code class="language-shell">base64 {{path/to/file}}
933933
</code></pre>
934934
<p>Decode the base64 contents of a file and write the result to <code>stdout</code>:</p>
935-
<pre><code class="language-shell">base64 --decode {{filename}}
935+
<pre><code class="language-shell">base64 --decode {{path/to/file}}
936936
</code></pre>
937937
<p>Encode from <code>stdin</code>:</p>
938938
<pre><code class="language-shell">{{somecommand}} | base64
@@ -6465,10 +6465,10 @@ <h2 id="options-67"><a class="header" href="#options-67">Options</a></h2>
64656465
</dl>
64666466
<h2 id="examples-64"><a class="header" href="#examples-64">Examples</a></h2>
64676467
<p>Get the actual file to which the symlink points:</p>
6468-
<pre><code class="language-shell">readlink {{filename}}
6468+
<pre><code class="language-shell">readlink {{path/to/file}}
64696469
</code></pre>
64706470
<p>Get the absolute path to a file:</p>
6471-
<pre><code class="language-shell">readlink -f {{filename}}
6471+
<pre><code class="language-shell">readlink -f {{path/to/file}}
64726472
</code></pre>
64736473
<blockquote>
64746474
<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>
@@ -6670,7 +6670,7 @@ <h2 id="examples-66"><a class="header" href="#examples-66">Examples</a></h2>
66706670
<pre><code class="language-shell">rm -rf {{path/to/directory}}
66716671
</code></pre>
66726672
<p>Interactively remove multiple files, with a prompt before every removal:</p>
6673-
<pre><code class="language-shell">rm -i {{file(s)}}
6673+
<pre><code class="language-shell">rm -i {{path/to/file1 path/to/file2 ...}}
66746674
</code></pre>
66756675
<p>Remove files in verbose mode, printing a message for each removed file:</p>
66766676
<pre><code class="language-shell">rm -v {{path/to/directory/*}}
@@ -7846,13 +7846,13 @@ <h2 id="options-87"><a class="header" href="#options-87">Options</a></h2>
78467846
</dl>
78477847
<h2 id="examples-76"><a class="header" href="#examples-76">Examples</a></h2>
78487848
<p>Randomize the order of lines in a file and output the result:</p>
7849-
<pre><code class="language-shell">shuf {{filename}}
7849+
<pre><code class="language-shell">shuf {{path/to/file}}
78507850
</code></pre>
78517851
<p>Only output the first 5 entries of the result:</p>
7852-
<pre><code class="language-shell">shuf --head-count={{5}} {{filename}}
7852+
<pre><code class="language-shell">shuf --head-count={{5}} {{path/to/file}}
78537853
</code></pre>
78547854
<p>Write the output to another file:</p>
7855-
<pre><code class="language-shell">shuf {{filename}} --output={{output_filename}}
7855+
<pre><code class="language-shell">shuf {{path/to/input}} --output={{path/to/output}}
78567856
</code></pre>
78577857
<p>Generate 3 random numbers in the range 1-10 (inclusive):</p>
78587858
<pre><code class="language-shell">shuf --head-count={{3}} --input-range={{1-10}} --repeat
@@ -8162,16 +8162,16 @@ <h2 id="options-90"><a class="header" href="#options-90">Options</a></h2>
81628162
<p>Output fixed-size pieces of INPUT to PREFIXaa, PREFIXab, ...; default size is 1000, and default PREFIX is 'x'. With no INPUT, or when INPUT is -, read standard input.</p>
81638163
<h2 id="examples-79"><a class="header" href="#examples-79">Examples</a></h2>
81648164
<p>Split a file, each split having 10 lines (except the last split):</p>
8165-
<pre><code class="language-shell">split -l {{10}} {{filename}}
8165+
<pre><code class="language-shell">split -l {{10}} {{path/to/file}}
81668166
</code></pre>
81678167
<p>Split a file into 5 files. File is split such that each split has same size (except the last split):</p>
8168-
<pre><code class="language-shell">split -n {{5}} {{filename}}
8168+
<pre><code class="language-shell">split -n {{5}} {{path/to/file}}
81698169
</code></pre>
81708170
<p>Split a file with 512 bytes in each split (except the last split; use 512k for kilobytes and 512m for megabytes):</p>
8171-
<pre><code class="language-shell">split -b {{512}} {{filename}}
8171+
<pre><code class="language-shell">split -b {{512}} {{path/to/file}}
81728172
</code></pre>
81738173
<p>Split a file with at most 512 bytes in each split without breaking lines:</p>
8174-
<pre><code class="language-shell">split -C {{512}} {{filename}}
8174+
<pre><code class="language-shell">split -C {{512}} {{path/to/file}}
81758175
</code></pre>
81768176
<blockquote>
81778177
<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>
@@ -8349,11 +8349,8 @@ <h2 id="examples-82"><a class="header" href="#examples-82">Examples</a></h2>
83498349
<p>Display all settings for the current terminal:</p>
83508350
<pre><code class="language-shell">stty --all
83518351
</code></pre>
8352-
<p>Set the number of rows:</p>
8353-
<pre><code class="language-shell">stty rows {{rows}}
8354-
</code></pre>
8355-
<p>Set the number of columns:</p>
8356-
<pre><code class="language-shell">stty cols {{cols}}
8352+
<p>Set the number of rows or columns:</p>
8353+
<pre><code class="language-shell">stty {{rows|cols}} {{count}}
83578354
</code></pre>
83588355
<p>Get the actual transfer speed of a device:</p>
83598356
<pre><code class="language-shell">stty --file {{path/to/device_file}} speed
@@ -8956,25 +8953,25 @@ <h2 id="options-102"><a class="header" href="#options-102">Options</a></h2>
89568953
</dl>
89578954
<h2 id="examples-91"><a class="header" href="#examples-91">Examples</a></h2>
89588955
<p>Replace all occurrences of a character in a file, and print the result:</p>
8959-
<pre><code class="language-shell">tr {{find_character}} {{replace_character}} &lt; {{filename}}
8956+
<pre><code class="language-shell">tr {{find_character}} {{replace_character}} &lt; {{path/to/file}}
89608957
</code></pre>
89618958
<p>Replace all occurrences of a character from another command's output:</p>
89628959
<pre><code class="language-shell">echo {{text}} | tr {{find_character}} {{replace_character}}
89638960
</code></pre>
89648961
<p>Map each character of the first set to the corresponding character of the second set:</p>
8965-
<pre><code class="language-shell">tr '{{abcd}}' '{{jkmn}}' &lt; {{filename}}
8962+
<pre><code class="language-shell">tr '{{abcd}}' '{{jkmn}}' &lt; {{path/to/file}}
89668963
</code></pre>
89678964
<p>Delete all occurrences of the specified set of characters from the input:</p>
8968-
<pre><code class="language-shell">tr -d '{{input_characters}}' &lt; {{filename}}
8965+
<pre><code class="language-shell">tr -d '{{input_characters}}' &lt; {{path/to/file}}
89698966
</code></pre>
89708967
<p>Compress a series of identical characters to a single character:</p>
8971-
<pre><code class="language-shell">tr -s '{{input_characters}}' &lt; {{filename}}
8968+
<pre><code class="language-shell">tr -s '{{input_characters}}' &lt; {{path/to/file}}
89728969
</code></pre>
89738970
<p>Translate the contents of a file to upper-case:</p>
8974-
<pre><code class="language-shell">tr &quot;[:lower:]&quot; &quot;[:upper:]&quot; &lt; {{filename}}
8971+
<pre><code class="language-shell">tr &quot;[:lower:]&quot; &quot;[:upper:]&quot; &lt; {{path/to/file}}
89758972
</code></pre>
89768973
<p>Strip out non-printable characters from a file:</p>
8977-
<pre><code class="language-shell">tr -cd &quot;[:print:]&quot; &lt; {{filename}}
8974+
<pre><code class="language-shell">tr -cd &quot;[:print:]&quot; &lt; {{path/to/file}}
89788975
</code></pre>
89798976
<blockquote>
89808977
<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

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

user/searchindex.json

+1-1
Large diffs are not rendered by default.

user/utils/base32.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,10 @@ <h2 id="options"><a class="header" href="#options">Options</a></h2>
212212
</dl>
213213
<h2 id="examples"><a class="header" href="#examples">Examples</a></h2>
214214
<p>Encode a file:</p>
215-
<pre><code class="language-shell">base32 {{filename}}
215+
<pre><code class="language-shell">base32 {{path/to/file}}
216216
</code></pre>
217217
<p>Decode a file:</p>
218-
<pre><code class="language-shell">base32 --decode {{filename}}
218+
<pre><code class="language-shell">base32 --decode {{path/to/file}}
219219
</code></pre>
220220
<p>Encode from <code>stdin</code>:</p>
221221
<pre><code class="language-shell">{{somecommand}} | base32

user/utils/base64.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,10 @@ <h2 id="options"><a class="header" href="#options">Options</a></h2>
212212
</dl>
213213
<h2 id="examples"><a class="header" href="#examples">Examples</a></h2>
214214
<p>Encode the contents of a file as base64 and write the result to <code>stdout</code>:</p>
215-
<pre><code class="language-shell">base64 {{filename}}
215+
<pre><code class="language-shell">base64 {{path/to/file}}
216216
</code></pre>
217217
<p>Decode the base64 contents of a file and write the result to <code>stdout</code>:</p>
218-
<pre><code class="language-shell">base64 --decode {{filename}}
218+
<pre><code class="language-shell">base64 --decode {{path/to/file}}
219219
</code></pre>
220220
<p>Encode from <code>stdin</code>:</p>
221221
<pre><code class="language-shell">{{somecommand}} | base64

user/utils/readlink.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,10 @@ <h2 id="options"><a class="header" href="#options">Options</a></h2>
226226
</dl>
227227
<h2 id="examples"><a class="header" href="#examples">Examples</a></h2>
228228
<p>Get the actual file to which the symlink points:</p>
229-
<pre><code class="language-shell">readlink {{filename}}
229+
<pre><code class="language-shell">readlink {{path/to/file}}
230230
</code></pre>
231231
<p>Get the absolute path to a file:</p>
232-
<pre><code class="language-shell">readlink -f {{filename}}
232+
<pre><code class="language-shell">readlink -f {{path/to/file}}
233233
</code></pre>
234234
<blockquote>
235235
<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/utils/rm.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ <h2 id="examples"><a class="header" href="#examples">Examples</a></h2>
246246
<pre><code class="language-shell">rm -rf {{path/to/directory}}
247247
</code></pre>
248248
<p>Interactively remove multiple files, with a prompt before every removal:</p>
249-
<pre><code class="language-shell">rm -i {{file(s)}}
249+
<pre><code class="language-shell">rm -i {{path/to/file1 path/to/file2 ...}}
250250
</code></pre>
251251
<p>Remove files in verbose mode, printing a message for each removed file:</p>
252252
<pre><code class="language-shell">rm -v {{path/to/directory/*}}

user/utils/shuf.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,13 @@ <h2 id="options"><a class="header" href="#options">Options</a></h2>
224224
</dl>
225225
<h2 id="examples"><a class="header" href="#examples">Examples</a></h2>
226226
<p>Randomize the order of lines in a file and output the result:</p>
227-
<pre><code class="language-shell">shuf {{filename}}
227+
<pre><code class="language-shell">shuf {{path/to/file}}
228228
</code></pre>
229229
<p>Only output the first 5 entries of the result:</p>
230-
<pre><code class="language-shell">shuf --head-count={{5}} {{filename}}
230+
<pre><code class="language-shell">shuf --head-count={{5}} {{path/to/file}}
231231
</code></pre>
232232
<p>Write the output to another file:</p>
233-
<pre><code class="language-shell">shuf {{filename}} --output={{output_filename}}
233+
<pre><code class="language-shell">shuf {{path/to/input}} --output={{path/to/output}}
234234
</code></pre>
235235
<p>Generate 3 random numbers in the range 1-10 (inclusive):</p>
236236
<pre><code class="language-shell">shuf --head-count={{3}} --input-range={{1-10}} --repeat

user/utils/split.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -248,16 +248,16 @@ <h2 id="options"><a class="header" href="#options">Options</a></h2>
248248
<p>Output fixed-size pieces of INPUT to PREFIXaa, PREFIXab, ...; default size is 1000, and default PREFIX is 'x'. With no INPUT, or when INPUT is -, read standard input.</p>
249249
<h2 id="examples"><a class="header" href="#examples">Examples</a></h2>
250250
<p>Split a file, each split having 10 lines (except the last split):</p>
251-
<pre><code class="language-shell">split -l {{10}} {{filename}}
251+
<pre><code class="language-shell">split -l {{10}} {{path/to/file}}
252252
</code></pre>
253253
<p>Split a file into 5 files. File is split such that each split has same size (except the last split):</p>
254-
<pre><code class="language-shell">split -n {{5}} {{filename}}
254+
<pre><code class="language-shell">split -n {{5}} {{path/to/file}}
255255
</code></pre>
256256
<p>Split a file with 512 bytes in each split (except the last split; use 512k for kilobytes and 512m for megabytes):</p>
257-
<pre><code class="language-shell">split -b {{512}} {{filename}}
257+
<pre><code class="language-shell">split -b {{512}} {{path/to/file}}
258258
</code></pre>
259259
<p>Split a file with at most 512 bytes in each split without breaking lines:</p>
260-
<pre><code class="language-shell">split -C {{512}} {{filename}}
260+
<pre><code class="language-shell">split -C {{512}} {{path/to/file}}
261261
</code></pre>
262262
<blockquote>
263263
<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/utils/stty.html

+2-5
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,8 @@ <h2 id="examples"><a class="header" href="#examples">Examples</a></h2>
210210
<p>Display all settings for the current terminal:</p>
211211
<pre><code class="language-shell">stty --all
212212
</code></pre>
213-
<p>Set the number of rows:</p>
214-
<pre><code class="language-shell">stty rows {{rows}}
215-
</code></pre>
216-
<p>Set the number of columns:</p>
217-
<pre><code class="language-shell">stty cols {{cols}}
213+
<p>Set the number of rows or columns:</p>
214+
<pre><code class="language-shell">stty {{rows|cols}} {{count}}
218215
</code></pre>
219216
<p>Get the actual transfer speed of a device:</p>
220217
<pre><code class="language-shell">stty --file {{path/to/device_file}} speed

user/utils/tr.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -210,25 +210,25 @@ <h2 id="options"><a class="header" href="#options">Options</a></h2>
210210
</dl>
211211
<h2 id="examples"><a class="header" href="#examples">Examples</a></h2>
212212
<p>Replace all occurrences of a character in a file, and print the result:</p>
213-
<pre><code class="language-shell">tr {{find_character}} {{replace_character}} &lt; {{filename}}
213+
<pre><code class="language-shell">tr {{find_character}} {{replace_character}} &lt; {{path/to/file}}
214214
</code></pre>
215215
<p>Replace all occurrences of a character from another command's output:</p>
216216
<pre><code class="language-shell">echo {{text}} | tr {{find_character}} {{replace_character}}
217217
</code></pre>
218218
<p>Map each character of the first set to the corresponding character of the second set:</p>
219-
<pre><code class="language-shell">tr '{{abcd}}' '{{jkmn}}' &lt; {{filename}}
219+
<pre><code class="language-shell">tr '{{abcd}}' '{{jkmn}}' &lt; {{path/to/file}}
220220
</code></pre>
221221
<p>Delete all occurrences of the specified set of characters from the input:</p>
222-
<pre><code class="language-shell">tr -d '{{input_characters}}' &lt; {{filename}}
222+
<pre><code class="language-shell">tr -d '{{input_characters}}' &lt; {{path/to/file}}
223223
</code></pre>
224224
<p>Compress a series of identical characters to a single character:</p>
225-
<pre><code class="language-shell">tr -s '{{input_characters}}' &lt; {{filename}}
225+
<pre><code class="language-shell">tr -s '{{input_characters}}' &lt; {{path/to/file}}
226226
</code></pre>
227227
<p>Translate the contents of a file to upper-case:</p>
228-
<pre><code class="language-shell">tr &quot;[:lower:]&quot; &quot;[:upper:]&quot; &lt; {{filename}}
228+
<pre><code class="language-shell">tr &quot;[:lower:]&quot; &quot;[:upper:]&quot; &lt; {{path/to/file}}
229229
</code></pre>
230230
<p>Strip out non-printable characters from a file:</p>
231-
<pre><code class="language-shell">tr -cd &quot;[:print:]&quot; &lt; {{filename}}
231+
<pre><code class="language-shell">tr -cd &quot;[:print:]&quot; &lt; {{path/to/file}}
232232
</code></pre>
233233
<blockquote>
234234
<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)