bat

bat

TLDR

Print the contents of a file to the standard output

$ bat [file]
copy

Concatenate several files into the target file

$ bat [file1] [file2] > [target_file]
copy

Append several files into the target file

$ bat [file1] [file2] >> [target_file]
copy

Number all output lines

$ bat -n [file]
copy

Syntax highlight a json file

$ bat --language json [file.json]
copy

Display all supported languages

$ bat --list-languages
copy

Copied to clipboard
gala