bat - A cat clone with wings
bat
is a command-line tool that is used to view and display the contents of text files.
bat
is similar to the cat
command, but it has some additional features that make it more user-friendly.
Some of the main features of bat
include:
- Syntax highlighting for many different programming languages and file formats
- Automatic paging, so that long files are displayed one page at a time
- Support for displaying line numbers and code folding
- The ability to display the file's git blame information, showing which lines were modified by which commits
- The ability to display the file's encoding and byte-order-mark (BOM) information
- The ability to customize the appearance of the output, including the ability to use custom color schemes.
References
- Author: Paul Annesley
- License: Apache and MIT
- Programming language: Rust
- Source code: https://github.com/sharkdp/bat