1/5/2024 0 Comments Coteditor tutorial![]() Of course it gets a little more complicated if there is some middle names or some last names that are two words and things like that. So that's going to define this as 2 columns with a space between each column and it's going to certify the second column, in other words in this case a last name sort. I could even do this and do K2 for the second column and then define the column with dash T and then in single quotes a space. So, for instance, if I wanted to Sort in reverse order I could do Sort, names.txt, and then dashR and it will do it in reverse order or dash capital R and it sorts them in random order. You could do MAN for manual and Sort and then you could look at the description for everything it does. Now as it turns out there's a ton of functionality in the Sort command. If I open that one up I'll see that sorted out alphabetically. So I'm going to modify that and type the name of the file and then do dashO and give it a name for the new file. It's going to output all of that to the Terminal window. So now I'm there and I can do Sort and the name of the file. ![]() I'm just going to go to the folder it's in, so in this case the Desktop folder. ![]() I'm going to drag and drop this in here and I will Delete the names. So I'm going to do CD to change directory. So now to Sort this file let's go to where it's located. Well, you can do that using Terminal because command line apps are pretty good at handling things like alphabetizing. What about editing this text file directly. So it's easy to take your list into Pages or Numbers, Sort, and then Copy and Paste it back where you want it. Now with that still selected I could Copy and then I can Replace everything here. I could just paste in all of those names here, sort that column just like I would in Pages. So for instance we can go into Numbers here and just create a new document. Now instead you could use a spreadsheet to do this. If you're in Rich Text Format you may instead want to use Edit and Paste In that Style so that it doesn't paste the table in. Now I'm going to Hide Pages and go back to my text document and now I can replace everything, Command V to Paste it in. I still have everything selected so I can do Command C to Copy. Click there, choose Sort and now they are sorted. Now that I've got that I can go to the Column Heading here, A. It should paste every name to a different row. I just want to select the first cell all by itself and then Command V to paste. I'm going to be careful not to double click and be actually typing in the cell. I'm actually going to click here and bring it down to one column and then I'm going to select the first cell. So I'm going to insert a Table here, just a plain table. So you want to create a new blank document here and I'm not going to Paste the list directly into the body text because I still can't sort it that way in Pages. So let's take a look at some of them.įirst, let's select All, Command A and Command C to Copy this list. You would think that there would be some sort of function in TextEdit or some other apps to sort this list. So here I've got a text file that is a list of 100 names and I want to sort it. So let's say you have a list that you want to sort alphabetically like maybe a list of names. Join us and get exclusive content and course discounts. ![]() There you can read more about the Patreon Campaign. MacMost is brought to you thanks to a great group of more than 1000 supporters. Let me show you different ways that you can sort the lines of a text file on your Mac. Video Transcript: Hi, this is Gary with. Check out 6 Ways To Sort a List On a Mac at YouTube for closed captioning and more options.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |