Print and concatenate files. A
cat
clone with syntax highlighting and Git integration. More information: https://github.com/sharkdp/bat.
stdout
:bat path/to/file1 path/to/file2 ...
bat path/to/file1 path/to/file2 ... > path/to/target_file
--style plain
can be replaced with -p
, or both options with -pp
):bat --style plain --pager never path/to/file
bat --highlight-line|-H 10|5:10|:10|10:|10:+5 path/to/file
bat --show-all|-A path/to/file
bat --number|-n path/to/file
bat --language|-l json path/to/file.json
bat --list-languages|-L