mirror of
https://github.com/jbranchaud/til
synced 2026-01-10 02:28:02 +00:00
Add Cat Files With Color Using Bat as a unix til
This commit is contained in:
16
unix/cat-files-with-color-using-bat.md
Normal file
16
unix/cat-files-with-color-using-bat.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# Cat Files With Color Using Bat
|
||||
|
||||
The time-tested utility `cat` is probably one of the most used unix
|
||||
commands. It prints the contents of the file to stdout. You can use it to
|
||||
get a quick view of a file.
|
||||
|
||||

|
||||
|
||||
We live in a world of color and our terminal emulators are capable of so
|
||||
much more. There is an alternative to `cat`, called `bat`, that provides
|
||||
syntax highlighting based on the type of file.
|
||||
|
||||

|
||||
|
||||
This is an open-source utility written in Rust. You can check it out on
|
||||
[github](https://github.com/sharkdp/bat).
|
||||
Reference in New Issue
Block a user