If you pipe bat
to another command it will act like cat so you can use it as a drop-in replacement and have it print things nicely when you want to view text and otherwise work as a normal commandline tool.
Comment on A collection of modern/faster/saner alternatives to common unix commands
art@lemmy.world 1 year ago
Most of these are good but cat
isn’t just about looking at text.
zygo_histo_morpheus@programming.dev 1 year ago
silt@programming.dev 1 year ago
In my experience it was much slower, which is unfortunate. I still use
bat
, but that alias got removed pretty quickly.
Yearly1845@reddthat.com 1 year ago
I replaced cat with bat and you honestly can’t make me go back.