1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/rev.md

29 lines
442 B
Markdown
Raw Normal View History

# rev
> Reverse a line of text or a file.
> More information: <https://manned.org/rev>.
- Reverse text typed into terminal:
`rev`
- Reverse the text string "hello":
`echo "hello" | rev`
- Reverse an entire file and print to `stdout`:
2022-12-04 10:12:49 +01:00
`rev {{path/to/file}}`
- Use '\0' as a line separator (zero termination):
`rev {{[-0|--zero]}} {{path/to/file}}`
- Display help:
`rev {{[-h|--help]}}`
- Display version:
`rev {{[-V|--version]}}`