Skip to content

Commit ee91d18

Browse files
committed
Add Print Out Files In Reverse as a unix til
1 parent 50e1151 commit ee91d18

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ and pairing with smart people at Hashrocket.
99

1010
For a steady stream of TILs, [sign up for my newsletter](https://tinyletter.com/jbranchaud).
1111

12-
_891 TILs and counting..._
12+
_892 TILs and counting..._
1313

1414
---
1515

@@ -828,6 +828,7 @@ _891 TILs and counting..._
828828
- [Partial String Matching In Bash Scripts](unix/partial-string-matching-in-bash-scripts.md)
829829
- [PID Of The Current Shell](unix/pid-of-the-current-shell.md)
830830
- [Print A Range Of Lines For A File With Bat](unix/print-a-range-of-lines-for-a-file-with-bat.md)
831+
- [Print Out Files In Reverse](unix/print-out-files-in-reverse.md)
831832
- [Repeat Yourself](unix/repeat-yourself.md)
832833
- [Saying Yes](unix/saying-yes.md)
833834
- [Search Files Specific To A Language](unix/search-files-specific-to-a-language.md)

unix/print-out-files-in-reverse.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Print Out Files In Reverse
2+
3+
If you're familiar with `cat` -- the command you might use to print out a file
4+
in the terminal -- then you may appreciate a similar command: `tac`.
5+
6+
With `tac` you can
7+
8+
> Write each FILE to standard output, last line first.
9+
10+
Notice that `tac` is `cat` spelled in reverse. That's what it does with your
11+
files, prints them out in reverse.
12+
13+
Give it a try just as you'd use `cat`:
14+
15+
```bash
16+
$ tac README.md
17+
```
18+
19+
See `man tac` for more details.

0 commit comments

Comments
 (0)