> For the complete documentation index, see [llms.txt](https://til.devjugal.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://til.devjugal.com/linux/bash/read-command-output-in-reverse-order.md).

# Read Command Output In Reverse Order

We can use `tac` to read file(s) or `stdout` in reverse order.

> tac - concatenate and print files in reverse

### Example

```bash
echo -e "Hello\nWorld" | tac
World
Hello
```

***Source:*** [***StackOverFlow***](https://stackoverflow.com/a/28879552)
