HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

rev — Reverse lines of text. More information: <https://keith.github.io/xcode-man-pages/rev.1.html>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandlinestextrevcliinformationreversemore
macos

Problem

How to use the rev command: Reverse lines of text. More information: <https://keith.github.io/xcode-man-pages/rev.1.html>.

Solution

rev — Reverse lines of text. More information: <https://keith.github.io/xcode-man-pages/rev.1.html>.

Reverse each line in a file to stdout:
rev {{path/to/file}}


Reverse each line from stdin to stdout:
{{command}} | rev

Code Snippets

Reverse each line in a file to `stdout`

rev {{path/to/file}}

Reverse each line from `stdin` to `stdout`

{{command}} | rev

Context

tldr-pages: osx/rev

Revisions (0)

No revisions yet.