 Okay, once again, this is a series. There should be an annotation on the screen That will bring you to the full playlist of the said series So so far we've been working with this file. Let's text file. Today. We're going to look at another file that I created Just some fly stuff, but we'll get into the original file And just a little bit look out this you can see it's just very basic all lowercase words and if I use said in this way Pacing that because I'll type it wrong and I don't have notes in front of me Okay, so what this is saying here is We're gonna use said we're gonna substitute the first word in the line with well in this case nothing Essentially moving removing the first word. We'll hit enter there and you can see that's the wrong file To you can see that we removed the first words. So once again if we cat out text to Let's clear the screen first text to and then we run our said command You can see that and said this is that we have is that instead of one two three We have two three four five six. We have five six. So basically we're saying this backslash W with the asterisk is saying Find the first word and the period saying remove the space as well So actually if we run that again without the period I'm pretty sure yeah Same thing. It just didn't remove the space the period saying remove the space as well Because if you're moving the first word might as well remove the space So that's great. That's that's that's that's interesting. We can also do the last word on the line Which I'm growing off memory here, and I really should wrote this down to the period dollar sign or dollar sign Let's see. Okay. It's dollar sign so if we say said The backslash w asterisk for word. I'm assuming that what it's me It's hard to find documentation on that. It's not inside the man file Although there's other ways you can type this out, but this is the shortest I could find and then this means and align So we're saying find the end of the line find the word at the end of line and replace it in this case with nothing We could replace the last word of every line with Bob So there you know or we do the first word in every line like so Now the reason that I create this other file for you as opposed to our original file because if we were to Do the same thing and try to remove the last line or last word of each line Or the first word of each line With our original file. It's not gonna work quite right. So we're gonna do this and you can see let me cat out our original file here. So the original file is Ten tiny toes and then up here you can see it says ten tiny toes now The second line says this is that and did remove the that and then we have five funny zero and it did remove the zero and then we have One kind of two three, but it didn't remove the three and I'm sure you're already seeing why And we have two or three twice and twice is gone and nothing's removed on that line And the reason is because here it's looking for words and these have special characters at the end So it's not finding a word basically an alphanumeric because you can see it did remove the number the zero that was here So basically it's looking for a word That is alphanumeric at the end of the line and since there's punctuation at the end of these lines It did not work. So your next question might be well, how do I remove? Those words that do have punctuation or special characters at the end. My answer is I don't know I don't know at this point But hopefully I'll figure that out and have that in a future video but for now we have a quick look here at finding the word At the beginning of the line right here at a period if you want to remove the space as well or the end of the line So again, I hope you find these tutorials useful I hope you're enjoying these said tutorials said is a very powerful tool when it comes to manipulating text and Especially when it comes to substitution, which is what we're using for mostly in these tutorials But we'll get into some other stuff in the future. Please visit my site filmsbychrist.com That's Chris the K should be a link in the description and rotation on the screen to the playlist if you're not already watching the playlist Be back in a week for next week's video on said that is if you If you're watching this in the day put it out Obviously if it's more than a week later that videos are you up and if you're watching the playlist you should see that I thank you for watching and once again have a great day