bat
Print and concatenate files. tldr-pages
On several platforms
Several platforms
Print and concatenate files. A cat clone with syntax highlighting and Git integration.
Pretty print the contents of one or more files to stdout
bat path/to/file1 path/to/file2 ...IdentifyConcatenate several files into the target file
bat path/to/file1 path/to/file2 ... >path/to/target_fileIdentifyRemove decorations and disable paging
bat --style plain --pager never path/to/fileIdentifyHighlight a specific line or a range of lines with a different background color
bat --highlight-line 10 path/to/fileIdentifyShow non-printable characters like space, tab, or newline
bat --show-all path/to/fileIdentifyRemove all decorations except line numbers in the output
bat --number path/to/fileIdentifySyntax highlight a JSON file by explicitly setting the language
bat --language json path/to/file.jsonIdentifyDisplay all supported languages
bat --list-languagesIdentify