 Okay, this is a series there should be an annotation on the screen to the playlist if you haven't watched the rest of the videos already I recommend it. Okay, we've been working with This text file, which just has a bunch of random words numbers special characters and punctuation I put together for this tutorial now. We've been using said like so and we could say said And we're going to pass it that file. So we're saying said substitute Something with something else and do it globally means every instance of it inside this file. So again, we can say Find the letter t and replay every capital t and replace it with a lowercase t and there we Went from capital this and capital that to lowercase this and lowercase that Now there is any other command for said if you look in the That man page called dash and that's kind of a silent mode. It doesn't display anything In this particular case, it's kind of stupid, but there are uses for it And I'm going to show you one here Because right here we're not modifying the file and we're not displaying anything the screen So really it's doing all the work, but not giving us any type of output whether saved or to the screen But again, there are uses for it and one of them would be to do P P means print matches. So we're saying don't show us anything. That's what this is saying Don't show us anything, but the P is saying except for the matches So we're going to hit that and it does do that it displays the P It displays every line that has a match And but in this case, it's only replacing the first See you can see it's gonna replace this t or this t or this t because it's not the first on the line Well, we can still pass it the G so we can say PG or GP I don't think it matters and hit enter there And we have replaced every capital T with a lowercase t and we're only showing the lines that there are matches for You can see this line and this line didn't show up because there's no t's in those lines but now let's say We don't want to change anything Well, there's a few things you do. I guess you could just go replace all lowercase t's with lowercase t's Upset nope. Oh, there are no Lowercase t's you can say replace all capital T's with capital T's and and it finds that Okay, and we can say oh, I only want to find lines to have the word that the capital T and That and replace it with that and that works But another way if you remember an earlier tutorial, we use the ampersand to say replace Whatever the find wherever the matches and whatever the ampersand is is the match So we can do this. It's basically doing this is basically the same thing as doing that except for a little bit shorter Especially if you're trying to match a longer string. Well, let's say I wanted to find Any line that said tiny toes. I wouldn't have to type tiny toes twice I only have to type it once and the ampersand will basically replace it with itself This is similar to grep. I think I might have done a tutorial on this a while back But if for summary, I mean, I doubt you're gonna be on a system where you have said and you don't have grep But if for some reason you want to use said instead of grep Maybe you're gonna be passing it a few commands like we did an earlier tutorial like, you know, something like this You know, maybe you don't want to start up another process you can do a search with this in fact, I'm not sure I Know they see that one display that so that that's a bad example Because we have our silent in there. I could put a P at the end of that Anyway, I'm sure there's an instance where you would want to use said instead of grep for some reason but if you needed to and there it is and That's it for the tutorial. So I showed you how to you know display only lines of the ones you're trying to Do replacements on and I also showed you how or reviewed on how to replace the matched with itself And show you that there is maybe a reason that you wanted to do that anyway I thank you for watching. Please visit films by chris.com. That's chris of the K link in the description And I hope that you have a great day. I'll be sure to like this video and subscribe Of course have a great day