@@ -868,10 +868,10 @@ <h2 id="options-3"><a class="header" href="#options-3">Options</a></h2>
868
868
</ dl >
869
869
< h2 id ="examples-2 "> < a class ="header " href ="#examples-2 "> Examples</ a > </ h2 >
870
870
< p > Encode a file:</ p >
871
- < pre > < code class ="language-shell "> base32 {{filename }}
871
+ < pre > < code class ="language-shell "> base32 {{path/to/file }}
872
872
</ code > </ pre >
873
873
< 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 }}
875
875
</ code > </ pre >
876
876
< p > Encode from < code > stdin</ code > :</ p >
877
877
< pre > < code class ="language-shell "> {{somecommand}} | base32
@@ -929,10 +929,10 @@ <h2 id="options-4"><a class="header" href="#options-4">Options</a></h2>
929
929
</ dl >
930
930
< h2 id ="examples-3 "> < a class ="header " href ="#examples-3 "> Examples</ a > </ h2 >
931
931
< 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 }}
933
933
</ code > </ pre >
934
934
< 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 }}
936
936
</ code > </ pre >
937
937
< p > Encode from < code > stdin</ code > :</ p >
938
938
< pre > < code class ="language-shell "> {{somecommand}} | base64
@@ -6465,10 +6465,10 @@ <h2 id="options-67"><a class="header" href="#options-67">Options</a></h2>
6465
6465
</ dl >
6466
6466
< h2 id ="examples-64 "> < a class ="header " href ="#examples-64 "> Examples</ a > </ h2 >
6467
6467
< 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 }}
6469
6469
</ code > </ pre >
6470
6470
< 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 }}
6472
6472
</ code > </ pre >
6473
6473
< blockquote >
6474
6474
< 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>
6670
6670
< pre > < code class ="language-shell "> rm -rf {{path/to/directory}}
6671
6671
</ code > </ pre >
6672
6672
< 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 ... }}
6674
6674
</ code > </ pre >
6675
6675
< p > Remove files in verbose mode, printing a message for each removed file:</ p >
6676
6676
< 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>
7846
7846
</ dl >
7847
7847
< h2 id ="examples-76 "> < a class ="header " href ="#examples-76 "> Examples</ a > </ h2 >
7848
7848
< 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 }}
7850
7850
</ code > </ pre >
7851
7851
< 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 }}
7853
7853
</ code > </ pre >
7854
7854
< 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 }}
7856
7856
</ code > </ pre >
7857
7857
< p > Generate 3 random numbers in the range 1-10 (inclusive):</ p >
7858
7858
< 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>
8162
8162
< 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 >
8163
8163
< h2 id ="examples-79 "> < a class ="header " href ="#examples-79 "> Examples</ a > </ h2 >
8164
8164
< 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 }}
8166
8166
</ code > </ pre >
8167
8167
< 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 }}
8169
8169
</ code > </ pre >
8170
8170
< 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 }}
8172
8172
</ code > </ pre >
8173
8173
< 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 }}
8175
8175
</ code > </ pre >
8176
8176
< blockquote >
8177
8177
< 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>
8349
8349
< p > Display all settings for the current terminal:</ p >
8350
8350
< pre > < code class ="language-shell "> stty --all
8351
8351
</ 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}}
8357
8354
</ code > </ pre >
8358
8355
< p > Get the actual transfer speed of a device:</ p >
8359
8356
< 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>
8956
8953
</ dl >
8957
8954
< h2 id ="examples-91 "> < a class ="header " href ="#examples-91 "> Examples</ a > </ h2 >
8958
8955
< 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}} < {{filename }}
8956
+ < pre > < code class ="language-shell "> tr {{find_character}} {{replace_character}} < {{path/to/file }}
8960
8957
</ code > </ pre >
8961
8958
< p > Replace all occurrences of a character from another command's output:</ p >
8962
8959
< pre > < code class ="language-shell "> echo {{text}} | tr {{find_character}} {{replace_character}}
8963
8960
</ code > </ pre >
8964
8961
< 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}}' < {{filename }}
8962
+ < pre > < code class ="language-shell "> tr '{{abcd}}' '{{jkmn}}' < {{path/to/file }}
8966
8963
</ code > </ pre >
8967
8964
< p > Delete all occurrences of the specified set of characters from the input:</ p >
8968
- < pre > < code class ="language-shell "> tr -d '{{input_characters}}' < {{filename }}
8965
+ < pre > < code class ="language-shell "> tr -d '{{input_characters}}' < {{path/to/file }}
8969
8966
</ code > </ pre >
8970
8967
< p > Compress a series of identical characters to a single character:</ p >
8971
- < pre > < code class ="language-shell "> tr -s '{{input_characters}}' < {{filename }}
8968
+ < pre > < code class ="language-shell "> tr -s '{{input_characters}}' < {{path/to/file }}
8972
8969
</ code > </ pre >
8973
8970
< p > Translate the contents of a file to upper-case:</ p >
8974
- < pre > < code class ="language-shell "> tr "[:lower:]" "[:upper:]" < {{filename }}
8971
+ < pre > < code class ="language-shell "> tr "[:lower:]" "[:upper:]" < {{path/to/file }}
8975
8972
</ code > </ pre >
8976
8973
< p > Strip out non-printable characters from a file:</ p >
8977
- < pre > < code class ="language-shell "> tr -cd "[:print:]" < {{filename }}
8974
+ < pre > < code class ="language-shell "> tr -cd "[:print:]" < {{path/to/file }}
8978
8975
</ code > </ pre >
8979
8976
< blockquote >
8980
8977
< 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