 Hello and welcome today. We're going to grab some random words. We're gonna generate a random word list We're going to get words of a certain length and make sure they only have alpha alpha characters in them So no dashes or apostrophe. So how do we do this? Well, I've mentioned before on most Linux systems If we cat out this file usr share dict words That's going to be your default dictionary words for your system This is used for spell check and and lots of other things So we can cut that out and you get a long list of words which are normally in alphabetical order So if we wanted to get them in a random order, what we can do is put it into the shuffle commands We're piping it into shuffle and it shuffled up that list now If you don't have the shuffle command because it's not on all systems A more common command is the sort command if you do sort dash capital R It will sort it randomly, but you'll see it's a little bit slower. So although that command is more common I would suggest using the shuffle command if available So we'll do that and then let's say we only want to get five words We can say head dash and five and that will give us five words Or we can say 20 if we want 20 words. Let's go back to five. Let's clear this list Now you'll notice that there's some apostrophes in there some dashes. So what we're going to do is instead of Catting out the entire file. We are going to say grep dash capital E And what are we going to grep for in this file where we're going to give it the carrot symbol and dollar sign symbol So carrot means beginning a line and end a line. This is making sure that we're grabbing We're looking for something with specifically the entire line matches this and what we're going to do is inside brackets Double brackets with colons here. We're going to say alpha. That means only give us alpha Characters now if we do this it's going to give us just the first character of each of the shuffled lines that we just requested So what we want to do next is how long do we want our words to be and right here before the dollar sign We're going to do curly braces and i'll say five because I want a five character word list So now that we do that we get a list of random words that are just alpha words So no numbers no dashes no apostrophes That are five characters long and every time I run this we're going to get a new list of words So that is how you generate a random word list with the words of a certain length I thank you for watching. We're going to use this in future videos. So keep on watching subscribe If you haven't films by chris.com. That's chris the k as always. I hope that you have a great day