Skip to content

Commit 7a0d60d

Browse files
committed
Add Cat Files With Color Using Bat as a unix til
1 parent 10b1ab2 commit 7a0d60d

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
1010
For a steady stream of TILs from a variety of rocketeers, checkout
1111
[til.hashrocket.com](https://til.hashrocket.com/).
1212

13-
_787 TILs and counting..._
13+
_788 TILs and counting..._
1414

1515
---
1616

@@ -686,6 +686,7 @@ _787 TILs and counting..._
686686

687687
- [All The Environment Variables](unix/all-the-environment-variables.md)
688688
- [Cat A File With Line Numbers](unix/cat-a-file-with-line-numbers.md)
689+
- [Cat Files With Color Using Bat](unix/cat-files-with-color-using-bat.md)
689690
- [Change Default Shell For A User](unix/change-default-shell-for-a-user.md)
690691
- [Change To That New Directory](unix/change-to-that-new-directory.md)
691692
- [Check If A Port Is In Use](unix/check-if-a-port-is-in-use.md)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Cat Files With Color Using Bat
2+
3+
The time-tested utility `cat` is probably one of the most used unix
4+
commands. It prints the contents of the file to stdout. You can use it to
5+
get a quick view of a file.
6+
7+
![example of cat](https://i.imgur.com/kb1UjPW.png)
8+
9+
We live in a world of color and our terminal emulators are capable of so
10+
much more. There is an alternative to `cat`, called `bat`, that provides
11+
syntax highlighting based on the type of file.
12+
13+
![example of bat](https://i.imgur.com/ieL7v2Q.png)
14+
15+
This is an open-source utility written in Rust. You can check it out on
16+
[github](https://github.com/sharkdp/bat).

0 commit comments

Comments
 (0)