 So, today we're going to look at G-Log, and G-Log is a fairly useful log viewer. Its main intention is to view logs, but it's also really useful for looking at big files and searching big files. Another useful aspect of G-Log is that when you update a file in G-Log, well, not in G-Log, but if a file is updated somewhere on your hard drive, it's going to update the file in G-Log itself, so I'll show you that as an example later. So right now, to actually demonstrate the features of G-Log, I made this data file. This data file is about 600 megabytes, and what I put in here is the complete works of Shakespeare duplicated about, I think, 100 times or so. Okay, so let's actually take this, put it in here, and the first thing you have to observe is that it loaded this file in just a couple of seconds. I didn't even blink, and I saw that the whole file got loaded. Now, here's the thing that you have to keep in mind. If you open this file using a notepad or a mousepad, what's going to happen is it's going to take a couple of seconds to load, so I open this with mousepad. It's probably going to take me 10 or 15 seconds to load this file, and it doesn't even load the whole file. What it does is it loads a chunk of it, so for example, it may look here that mousepad opened this entire file, but it didn't if I scroll all the way down. As you can see, it's loading more lines as it's going down, see? Okay, anyways, getting back to G-Log. So G-Log is fairly simple. It's really straightforward. All it is is basically this window here, the display. It has this search line here, and it has this output box down here, and this is how you would actually use G-Log. You're going to type something into the search box, so you're going to type something like Spear, hit Enter, and you are, as you can see, it's searching for all of the occurrences of Spear down here. And now that it's finished, we can scroll down and see, well, okay, so we're getting all of these references to Spear, okay? And here's what you can do down here. You can click on any of these lines, and when you click on these lines, it's going to go up here. It's going to show you where that line is in the actual file. So if you want to know where that line is, you're just going to click here or click here, and you're going to get taken up here to that line. Another thing that you can do is you can kind of bookmark these lines. So if you want to keep a line for reference for later, you can just click beside this red circle, just click here, and it's going to turn into a blue arrow. When it turns into a blue arrow, that means that the next time you search for something, it's going to save that as a mark. So for example, if you want to only show the marks, you click here, and then you click on marks, and that displays all of your marks in your output window. So let's look for something else. Let's look for the word hand. You have to really appreciate how quickly it's searching this entire file. OK, so go back to matches, and now all of these are results for the lines which have the word hand in them. OK, let's see. So yeah, I think this is pretty self-explanatory. You just click whatever you want to save. I guess I'm going to go back to match something. OK, so I'm just going to save whatever I want. I'm going to go back in here. I'm going to search for a table, maybe. And you just keep repeating the process. Now, here's something that people who know regular expressions could appreciate. You're able to use, actually you're encouraged to use, regular expressions in this search line. So if you wanted to, you could use a character set like this. So you can say 029, and it's going to return to you all of the matches which are from 0 to 9. And I find that to be extremely useful because not every text editor or file viewer has regular expressions built into it. OK, so let's see. Yeah, so all of these lines now have a character which are either like 0 to 9 in that range. And finally, I think this is what makes a geologue really useful. With a geologue, if this file ever changes out here, it's going to, well, no, if it doesn't change it here, I mean, if it ever changes on my hard drive, it's going to display the results in here. So if this file gets something added to it on my hard drive, it will automatically display that change in this viewer, which is why it's really useful for viewing log files. And to do that, I'm going to demonstrate it using this command. So OK, I am going to echo an empty string into this data file, which will effectively remove everything in here. OK, perfect. So now, as soon as I execute that command, geologue cleared everything because it said, well, there's nothing in here, so I'm just going to delete everything. And I am going to type geologue is awesome. And as soon as I execute that command, it added that. So if I want to do that continuously, I can just keep typing this in and think about it. If you have a log file that's constantly spinning out logs and you want to keep track of them, you can simply open that file in geologue and it's going to keep updating that as the file updates. So you get real-time updates without having to make a script or use a tail or head. I'm not sure which one people use. But yeah, so yeah, it's really useful for stuff like this. And I hope that you like this video. And if you like this, please like and subscribe. And I'll see you later.