> For the complete documentation index, see [llms.txt](https://man.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://man.bsdcn.org/man1/rev.1.md).

# rev(1)

`rev` — 反转文件的行

## 名称

`rev` — 反转文件的行

## 概要

`rev [file]`

## 描述

`rev` 实用程序将指定文件复制到标准输出，反转每行中字符的顺序。如果未指定文件，则读取标准输入。

## 实例

从标准输入反转文本：

```sh
$ echo -e "reverse \t these\ntwo lines" | rev
eseht    esrever
senil owt
```
