2017-02-20 22:52:56 -05:00
|
|
|
# rev
|
|
|
|
|
2024-10-10 13:06:18 -04:00
|
|
|
> Reverse a line of text or a file.
|
2021-10-13 11:22:50 +05:00
|
|
|
> More information: <https://manned.org/rev>.
|
2017-02-20 22:52:56 -05:00
|
|
|
|
2024-10-10 13:06:18 -04:00
|
|
|
- Reverse text typed into terminal:
|
|
|
|
|
|
|
|
`rev`
|
|
|
|
|
2017-02-20 22:52:56 -05:00
|
|
|
- Reverse the text string "hello":
|
|
|
|
|
|
|
|
`echo "hello" | rev`
|
|
|
|
|
2022-12-04 08:53:34 +01:00
|
|
|
- Reverse an entire file and print to `stdout`:
|
2017-02-20 22:52:56 -05:00
|
|
|
|
2022-12-04 10:12:49 +01:00
|
|
|
`rev {{path/to/file}}`
|
2024-10-10 13:06:18 -04:00
|
|
|
|
|
|
|
- Use '\0' as a line separator (zero termination):
|
|
|
|
|
|
|
|
`rev -0 {{path/to/file}}`
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
`rev -h`
|
|
|
|
|
|
|
|
- Display version:
|
|
|
|
|
|
|
|
`rev -V`
|