 Okay, as always this is part of the series. There should be an annotation up on the screen that will lead you to the playlist I recommend watching the videos previous this on the playlist because this is I don't know video six or seven in the in the Playlist But we're working with said that's we're working with in this series and today We're gonna look at how to search more than one or replace more than one string search and replace substitute Here we go. We're gonna. Well, this is the file that we've been working with. It's called text Let me cat it out. It's just got some random stuff that we've been working with and let's say, um, I Wanted to replace the word twice But only do it once the hat. Okay said Three okay So what we're saying here if you've been following along is we're saying Fine said and I'm sorry fine said you said We're gonna substitute the word twice with None there we go now. We're not modifying the file here. We're just displaying it differently on the screen So you can see where we had the word twice. It now says none Let's say we also want to replace the word Three with the word to okay. Well, we can do that Simply by you know adding on to our command here now, of course, we could do it and In a way we could pipe it into a whole another said Process and do this and since we're piping it. We don't need to give it a file name. We can say three with two and Yeah, that would work, but now you're starting more than one process. I Mean it's gonna be milliseconds of a difference but this other way not only is doing it all one commands a little bit shorter, but doesn't start up more than one process and So it it shouldn't theory. I guess use less processing power So what we're gonna do here is we're gonna give it a semicolon And we're gonna say s four slash forward slash forward slash g so again The s saying we're substituting the g is saying global meaning all instances of it not stopping at the first in each line We'll say three and we're gonna change it to two and There in one command one process anyway giving passing said two Things to do separating them by semicolon. So it's just like like when you're writing a shell script You can separate your commands with a semicolon. Well, we're doing the same thing. We're just not starting up a whole new process We're just sending said giving said different commands And right here once again all we've done so far would said pretty much as substitute said can do some other things Which we'll get into in the future But you can put as many as you want in here So we can do another one. We can say semicolon s And we can say replace Funny with Tommy and there we go We have Tommy and said funny to instead of three and none instead of twice and again We have not modified this file At all if we were to cat it out It's still the same But of course if we wanted to make those changes again be very careful doing this because there's not really an undo We can do that dash I there, but I'm not gonna do that I'm gonna leave our file as is for the next tutorial this one was kind of short But very useful because there are many times we're gonna want to replace more than one thing and It's very easy to get in the bad habit of piping stuff over and over and over again that's what I tend to do and So just remember with inside your your quotation marks We're just going to do a semicolon and give it the next said command and that is it. I thank you for watching I hope that you enjoyed this tutorial be sure to like this video if you are enjoying these Subscribe if you haven't already I have new videos throughout the week every Monday will be some sort of shell Tutorial or Linux operating system specific tutorial for right now. That's that's how my schedule is working So Mondays are on that. I got Wednesday videos, which are kind of random topics And right now Fridays are basically other programming languages while this series is coming out, we're probably working a lot on on Java script and HTML 5 and Canvas and that will be gone for a while I might add other videos during the week if I have the time But I hope that you're enjoying these and I hope that you subscribe my site is films by Chris comm That's Chris the K. There's a quick search bar there that you can search through my videos you can also search on my youtube channel and Again my sites films by Chris comm Chris with a K link in the description. Hope that you have a great day