File tree 4 files changed +26
-14
lines changed
4 files changed +26
-14
lines changed Original file line number Diff line number Diff line change @@ -7492,14 +7492,20 @@ <h2 id="options-95"><a class="header" href="#options-95">Options</a></h2>
7492
7492
</ dd >
7493
7493
</ dl >
7494
7494
< h2 id ="examples-84 "> < a class ="header " href ="#examples-84 "> Examples</ a > </ h2 >
7495
- < p > Print the contents of < em > file1 </ em > reversed to the standard output :</ p >
7496
- < pre > < code class ="language-shell "> tac {{file1}}
7495
+ < p > Concatenate specific files in reversed order :</ p >
7496
+ < pre > < code class ="language-shell "> tac {{path/to/ file1 path/to/file2 ... }}
7497
7497
</ code > </ pre >
7498
- < p > Print the contents of the standard input reversed to the standard output :</ p >
7499
- < pre > < code class ="language-shell "> {{command }} | tac
7498
+ < p > Display < code > stdin </ code > in reversed order :</ p >
7499
+ < pre > < code class ="language-shell "> {{cat path/to/file }} | tac
7500
7500
</ code > </ pre >
7501
- < p > Concatenate several files reversed into the target file:</ p >
7502
- < pre > < code class ="language-shell "> tac {{file1}} {{file2}} > {{target_file}}
7501
+ < p > Use a specific [s]eparator:</ p >
7502
+ < pre > < code class ="language-shell "> tac -s {{separator}} {{path/to/file1 path/to/file2 ...}}
7503
+ </ code > </ pre >
7504
+ < p > Use a specific [r]egex as a [s]eparator:</ p >
7505
+ < pre > < code class ="language-shell "> tac -r -s {{separator}} {{path/to/file1 path/to/file2 ...}}
7506
+ </ code > </ pre >
7507
+ < p > Use a separator [b]efore each file:</ p >
7508
+ < pre > < code class ="language-shell "> tac -b {{path/to/file1 path/to/file2 ...}}
7503
7509
</ code > </ pre >
7504
7510
< blockquote >
7505
7511
< 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 >
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -206,14 +206,20 @@ <h2 id="options"><a class="header" href="#options">Options</a></h2>
206
206
</ dd >
207
207
</ dl >
208
208
< h2 id ="examples "> < a class ="header " href ="#examples "> Examples</ a > </ h2 >
209
- < p > Print the contents of < em > file1 </ em > reversed to the standard output :</ p >
210
- < pre > < code class ="language-shell "> tac {{file1}}
209
+ < p > Concatenate specific files in reversed order :</ p >
210
+ < pre > < code class ="language-shell "> tac {{path/to/ file1 path/to/file2 ... }}
211
211
</ code > </ pre >
212
- < p > Print the contents of the standard input reversed to the standard output :</ p >
213
- < pre > < code class ="language-shell "> {{command }} | tac
212
+ < p > Display < code > stdin </ code > in reversed order :</ p >
213
+ < pre > < code class ="language-shell "> {{cat path/to/file }} | tac
214
214
</ code > </ pre >
215
- < p > Concatenate several files reversed into the target file:</ p >
216
- < pre > < code class ="language-shell "> tac {{file1}} {{file2}} > {{target_file}}
215
+ < p > Use a specific [s]eparator:</ p >
216
+ < pre > < code class ="language-shell "> tac -s {{separator}} {{path/to/file1 path/to/file2 ...}}
217
+ </ code > </ pre >
218
+ < p > Use a specific [r]egex as a [s]eparator:</ p >
219
+ < pre > < code class ="language-shell "> tac -r -s {{separator}} {{path/to/file1 path/to/file2 ...}}
220
+ </ code > </ pre >
221
+ < p > Use a separator [b]efore each file:</ p >
222
+ < pre > < code class ="language-shell "> tac -b {{path/to/file1 path/to/file2 ...}}
217
223
</ code > </ pre >
218
224
< blockquote >
219
225
< 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 >
You can’t perform that action at this time.
0 commit comments