I came across a new Unix command that can replace the standard cat command used to out file content.
That command is bat.
Install for Linux (Ubuntu)
To install on Ubuntu install through apt.
sudo apt install batPlease note that this will install the command as batcat instead bat if you are using Ubuntu because of a package clash but this can be fixed.
Create a symbolic link between the batcat and bat commands.
sudo ln -s /usr/bin/batcat /usr/local/bin/batCheck the command file path to see if its working.
which batIf /usr/local/bin/bat is output then it’s set up correctly.
Install for MacOS
This step uses brew which is required to be installed.
Use the brew install command to add it.
brew install batCheck that the bat command is working, a directory should be returned.
which bat