bat
Verified for current stable LTS
Bat Commands
Bat command syntax with verified terminal examples.
Commands
8 commands for Bat
bat Operations
Bat Command: Pretty Print
bat <path/to/file1 path/to/file2 ...> bat HTTP
Bat Command: Concatenate
bat <path/to/file1 path/to/file2 ...> > <path/to/target_file> bat Operations
Bat Command: Remove Decorations
bat --style plain --pager never <path/to/file> bat Operations
Bat Command: Highlight Lines
bat -H {10|5:10|:10|10:|10:+5} <path/to/file> bat Operations
Bat Command: Show Non Printable
bat -A <path/to/file> bat Operations
Bat Command: Number Lines
bat -n <path/to/file> bat HTTP
Bat Command: Highlight Json
bat -l json <path/to/file.json> bat Operations
Bat Command: List Languages
bat -L Suggest a Bat Command
Submit missing workflows, corrections, or verified alternatives for this tool.
FAQ
Coverage: Focused examples for common Bat workflows.
Verified version: current stable LTS.
Verification: Test commands in a disposable workspace and submit notes for edge cases.