bat command in linux

 Bat Command in Linux



bat command
  • It is the replacement of cat command
  • It is used to show the file contents with syntax highlighting.
  • It is similar to cat command but bat command adds support for syntax highlighting to make the text easier to read (retrieval)
NOTE
  • By default, this command is not installed on your machine. So you need to install it based on the linux distribution, before to test this command.
Syntax
        bat filename

Example 1 - Displaying contents of text file





















Example 2 - Displaying file contents of shell script


Comments

Popular posts from this blog

For Loop in Bash Script (Shell Scripting)

Oppo F27 Pro Plus5g - Price, Specs

Vivo V30 Pro 5G