File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ and pairing with smart people at Hashrocket.
99
1010For 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 )
Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments