 This video is part of a series be sure to check out the link in the description for the full playlist today We're gonna be looking at sorting numbers. I have created a file here called numbers dot txt This is the contents of it and as you can see it's a bunch of random numbers in a random order Let's say we want to take all those numbers and put them in numeric order Well, what I can do is I can use the sort command and so sort will sort whatever input you've given it to it So if I say numbers you can see I do that. It doesn't really help me very much It did it sorted it but not the way we want it It's sorted it by line start this line starts with two this one's two three this one's three this one's three two So it's sorting it in more of an album alphabetical rather than a numeric way if that makes any sense So how can we use the sort command? To sort numbers well, we use the dash n argument We hit that and now our numbers are sorted in numeric order. So let's go ahead and modify this file a little bit and We'll say Let's say we have a bunch of 37s in there I can use this command that we just used sort dash and numbers dot txt And it'll sort them and we'll have all our 37s in a row there Let's say we want to remove any duplicates We'll use in the sort command if you ever use the dash you that will mean unique it will remove any duplicates So so that will give us our numbers sorted and unique So no repeat numbers in numeric order, and that's using the sort command to sort numbers I thank you for watching this a little quick video I hope you enjoyed it if you did be sure to like subscribe share and comment below as always I hope that you have a great day think about becoming a supporter on patreon.com forward slash metal x1000 There's a link in the description to that and as always I hope that you have a great day