 Okay, this is a series check out the annotation for the playlist We've been working with said and we are going to now look at a file and print every other line of it So if I cat out a file we've been working with I'll use my text to since it's numbered You can see each line here line two three four five isn't numbered because it's blank six seven eight nine ten If I wanted to print every other line in that file, there's two ways to do it. I Can say said and Colon D Text to and you can see it's printing all the odd numbers one three five seven nine And what this is doing is it's basically because we're using the d-command saying delete every other line And of course, we're not we haven't put the dash is we haven't modified the file. I can still Cat out that file. We haven't modified it at all, but that's what it's doing It's taken the output of that file and deleting every other line what we could also do is Instead of deleting every other line we can print Every other line starting with the first one so we can do dash But we have to give it the dash and for this to work it's being silent So it's not printing anything, but the output of this command So one it's it's gonna be printing every line, but then deleting every other line before it prints it This one it's not printing anything except for matches in this in which case we're gonna say P and N so print every other line. So again, we got all the odd numbers there Now let's say you wanted to print all the even numbers What we can do is go back to our first command here which deleted every other line And if you've been watching this series, you know that we can do one exclamation mark meaning Skip the first line. So we're starting on line two and then deleting every other line. So we get every other line printed 2468 so it's doing the same exact thing, but since it's skipping the first line and starting on the second line We're doing the even numbers rather than the odd Now let's say I want to print every third line Well, we can do the same thing here. We can do said don't print anything Except for print these lines. So we do that and get every every other line We can do colon and and now it's going to print every third line. So one then it will skip two lines Four and then skip two lines. So the number of ends here is how many lines we're skipping So we wanted to skip even more we can do that and so it's going one skip two three four Well, that's not right now. Is it? Oh Five I threw enough because because five is blank. Yes. So two one Two three four print five skip six seven eight prints nine skip ten and that's the last line in the file So that's how you skip multiple Lines if you wanted and I do want to mention that these ends can be capital or lower case It's one of those commands that does work that way So capital n here is the same as lowercase n here And if we were to come back up here and say delete this line, we can say capital and delete. Oh Maybe that doesn't work Okay, so with the with the Print command it works, but with the delete line command does not that's good to know I did not know that okay, so And that's printing every other number every other line or every third line every fourth line or whatever you want Using said hope you enjoy the storyable the tutorial Tutorial please visit my site films by Chris calm That's Chris the K come back next week when we will be double spacing and triple spacing lines in a file so See you next week check out the annotation for the playlist and maybe you're watching this in the future And next week video is already up if so check out the playlist and keep on watching. Have a great day