 Hello! Today we're going to be looking at a program called Bat. Most of you are probably familiar with Cat, which lets you concatenate or print out to the screen a file. Bat is basically Cat, but with some extra features like color coding. So let's go ahead and get started. If you're on a Debian-based system, you can sudo apt install bat. I've already done that, so I'm not going to do this. Once you have it installed, you would think you type in bat, which is the normal way of doing it. I'm assuming there's another program called bat in the Debian repositories because in Debian you have to do bat cat. Of course you can always alias it. So if I type in bat here, it's going to say command not found, bat cat. It's going to wait for a file, which I haven't given it, but I can always alias bat equals bat cat. And I can put that in my bash rc or zshell rc file, and now I can bat and use it just like cat. So let's go ahead and use it. I'm in a folder here with a bunch of little projects I've been working on. So here we can look at them, and here we have the readme file. So if I cat this out, I say readme cat, you can see what it looks like. There's not much inside this readme file, so it's probably not a great example. Let's actually look at the bin install. So if I cat bin install, you can see what that file looks like, and it's a bash script. But if I now say bat or bat cat, depending on how you have it set up, you can say bin install and hit enter, and you can see it's now color coded. I can scroll through it, much like less or more, and have line numbers as well. Let's look at some other formats. So I have files in here. Let's go into my c folder. In here, I have some c codes. So I will bat color.c, and here we go. It's color coding. I can scroll through this file. It's a basic little c file. Hit q to get out of that. Let's look at another file. Let's go donut. I can now bat the donut.c. Sorry, that was cat. Pat the donut.c. And now I can scroll through this file. Nicely color coded. So definitely as you're editing code, you know that color coding syntax highlighting is very important because it lets you see when you made a mistake when you don't realize it. But it's also sometimes nice just to be able to display it out like this. Let's look at another example. Let's look at some JavaScript. Okay. And the JavaScript is in the JavaScript folder here. Okay. JQuery. Oh, this is the minified one. I don't know how this is going to look. Let's have a look at this. Well, it's highlighting it, but it's minified, so it's not formatted properly. There are scripts and programs to do that. But let's look at some PHP. Let me bat out the index.php. There we go. We got some JavaScript in there, some HTML in there, and everything's nicely color coded. Again, numbered by line. Let's look at one more example. What other languages do I have in here? HTML. We kind of look at the HTML. Let's look at assembly. I haven't done much work in assembly, but I have a few little codes here. A little bootloader that displays out information and lets you type. So let's bat that out. I haven't tried this. Let's see what it looks like. Let's look at that highlighting for the assembly code. Let's cut out the read-me-ness. I think I've based this on someone else's code. Oh, no. Still notes that I just put, which is actually, that's just basically a shell script there. Let's go ahead and bat it out. That little bit of highlighting there, the commented outline. It is going based on the extension of the file. If I bat or batcat, hang on how you had set up, and do dash capital L, you'll list of programming languages that it knows. And then, for example, like Python here, it will tell you what extensions it will look for for highlighting like that. Something I have not looked into, but, for example, here, cybergriff in the video game I've been working on for the last month and a half or so. I can go in here. I can go into the resource or actually the source code scripts. So in here I have some GD script, which is Godot script, which is similar to Python, but it's not Python. I can cat out one of these like the enemies, yeah, enemy.gd. So this is what the code looks like, just catting it out. If I bat it out, it's going to basically do the same thing with line numbers. It's not going to highlight it all because it doesn't recognize that extension. I'm sure that you can probably tell us to look at that, but you can also tell it's dash lowercase l and the programming language name. In this case, I'll do Python. Again, this is not Python, but it's similar enough. Let's see how it looks. We've got some highlighting, not quite right. There might be better options out there. Maybe someone has made some sort of plug-in for Godot script. This is something I'd have to look into more, but it does, it tries to highlight it, but you would think that the var for variables would be highlighted one color and the actual variables would be a different color, but it's trying based on Python script. And there might be a language out there that highlights better for this. So yeah, that's it. Definitely check out the man file. There's going to be a lot more information on there. Also looking at their GitHub page, they support many, many. Let me bring this over here. There we go. Many, many. It looks like they're in the package manager for all these distributions, like Chocolates, so it runs on Windows. Like most things open source do run across the platform. Fedora, we had some BSDs in here, but also I noticed that it says Turmux, so you can install this easily on your Android devices, which might be nice as well. Anyway, that's it. I thank you for watching. As always, I hope that you have a great day. Visit my website, filmsbychris.com. That's Chris of the K, and I hope that you have a great day.