bat > cat
A cat(1) clone with wings. It has highlighting, paging, line numbers and git integration. - Home / CLI: improved - [HN]
The bat command also allows me to search during output (only if the output is longer than the screen height) using the / key binding (similarly to less searching).
It can still be used like cat: “Whenever bat detects a non-interactive terminal, it will fall back to printing the plain file contents.”
Written on August 30, 2018, Last update on March 30, 2021
cli