mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 09:02:08 +02:00
rev: update page (#13554)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
parent
773b19cd24
commit
82a3f74f92
1 changed files with 17 additions and 1 deletions
|
@ -1,8 +1,12 @@
|
||||||
# rev
|
# rev
|
||||||
|
|
||||||
> Reverse a line of text.
|
> Reverse a line of text or a file.
|
||||||
> More information: <https://manned.org/rev>.
|
> More information: <https://manned.org/rev>.
|
||||||
|
|
||||||
|
- Reverse text typed into terminal:
|
||||||
|
|
||||||
|
`rev`
|
||||||
|
|
||||||
- Reverse the text string "hello":
|
- Reverse the text string "hello":
|
||||||
|
|
||||||
`echo "hello" | rev`
|
`echo "hello" | rev`
|
||||||
|
@ -10,3 +14,15 @@
|
||||||
- Reverse an entire file and print to `stdout`:
|
- Reverse an entire file and print to `stdout`:
|
||||||
|
|
||||||
`rev {{path/to/file}}`
|
`rev {{path/to/file}}`
|
||||||
|
|
||||||
|
- Use '\0' as a line separator (zero termination):
|
||||||
|
|
||||||
|
`rev -0 {{path/to/file}}`
|
||||||
|
|
||||||
|
- Display help:
|
||||||
|
|
||||||
|
`rev -h`
|
||||||
|
|
||||||
|
- Display version:
|
||||||
|
|
||||||
|
`rev -V`
|
||||||
|
|
Loading…
Add table
Reference in a new issue