1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00

Add Print Out Files In Reverse as a unix til

This commit is contained in:
jbranchaud
2019-12-17 20:43:40 -06:00
parent 50e1151b68
commit ee91d18bda
2 changed files with 21 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
# Print Out Files In Reverse
If you're familiar with `cat` -- the command you might use to print out a file
in the terminal -- then you may appreciate a similar command: `tac`.
With `tac` you can
> Write each FILE to standard output, last line first.
Notice that `tac` is `cat` spelled in reverse. That's what it does with your
files, prints them out in reverse.
Give it a try just as you'd use `cat`:
```bash
$ tac README.md
```
See `man tac` for more details.