2020-02-08 10:46:43 -05:00
|
|
|
---
|
|
|
|
title: "Bat: The user friendly cat"
|
|
|
|
date: 2020-02-01T06:26:18-05:00
|
|
|
|
draft: false
|
2022-01-02 14:24:29 -05:00
|
|
|
tags: [ "Linux" ]
|
2023-01-05 14:04:45 -05:00
|
|
|
medium_enabled: true
|
2020-02-08 10:46:43 -05:00
|
|
|
---
|
|
|
|
|
|
|
|
`bat` is a more human pleasing replacement of `cat` with the following features:
|
|
|
|
|
|
|
|
- syntax highlighting support
|
|
|
|
- git integration
|
|
|
|
- automatic paging
|
|
|
|
|
|
|
|
To test it out I wrote a file called `test.py`
|
|
|
|
|
|
|
|
```python
|
|
|
|
from collections import Counter
|
|
|
|
|
|
|
|
items = [1,3,1,6,3]
|
|
|
|
c = Counter(items)
|
|
|
|
|
|
|
|
print(c[1])
|
|
|
|
```
|
|
|
|
|
|
|
|
And here's a screenshot of my terminal session when I called `bat`
|
|
|
|
|
2022-06-11 22:54:02 -04:00
|
|
|
![image-20200201063050726](/files/images/blog/20200201063050726.png)
|