 Hello and welcome! The title of this video may not make sense. I wasn't really sure how to word it. But basically what we're going to be looking at today is searching through the processes that are running on our machine and gripping the certain processes, but avoiding gripping greps. So this is a common trick. You may have seen this, but just in case you haven't, I'm doing a video on it. Usually I use the command PS and usually with the AUX arguments to list out all the processes running on my machine. And let's say I wanted to find the process information on the process. I have a program open called Eureka, which is a DOOM level editor. I'm going to go like this and type grep and I can start typing Eureka, like so. I can type partial to word, all the whole word depending on what processes I have running and how I want to narrow it down. But whether I type part or whole, you'll notice that I get two processes and only one of them is the actual program. One of them is my grep command. So we're running this command, the PS AUX command, and it's finding the process of grep which we're using. And we'll find that every time because whatever we search will show up in the list. So how do you avoid that? Well, it's simple. You need quotation marks and brackets. We'll just put brackets around the first letter there and quotation marks around the whole thing. And now we get only the process. This is actually the Eureka program. Why does this work? So what we're using here is what's called a regular expression. The regular expression is characters they're used to, how do you word this, represent a range of characters. And normally you can use these brackets to put multiple characters in there and it will find those multiple characters. So let's say I wanted to grep for bat, hat and cat, but avoid another word, that. I could put those letters in these brackets and narrow it down. So why does that work here? Well, because now our grep command, it's looking for Eureka. It's looking for E followed by U R E K A. But when it shows up in the command up here in our grep, it doesn't, it isn't spelt like that. So it's not seeing the word Eureka here because these brackets and that's why that works. So that was just a quick and simple tip, very short tutorial here. But it's something that we're going to be using in coming videos. So I wanted to do a tutorial on and on itself. But again, basically grep is looking for lines of processes that have the word Eureka. And this line normally has it, but now doesn't because these brackets are here making this a new word as far as the search is concerned. Thank you for watching. Please visit filmsbychrist.com. That's Chris Decay. There's a link in the description. I hope you have a great day.