Title: Notepad++ sort by the largest number of the same results Post by: inlovewiththedj on March 24, 2020, 01:23:24 PM Hello
I have a question about software or script for sorting addresses. Now I'm using Notepad++ but it is difficult to sort in my way. For example I have few addresses Code: 1BitcoinJNVRfTPxCJeA5UsSA5g4Twu8h8 How to sort text in Notepad ++ (or other tool) like in bellow at the very top after sorting there will be addressess with the names most often repeating or closest, then subsequent, subsequent and subsequent ones as in the example below So How to sort to this way: 1Bitcoin1DomR3kFvRVUyqvF357zZes4PD 1Bitcoin1H54ZwxFMDFod8vtz55dweqnz7 1Bitcoin13gGce1XJu6ni1EisMe5iPcguf 1Bitcoin17ybmkj3qH7VyT5XjdnXaz3ZBa 1BitcoinJNVRfTPxCJeA5UsSA5g4Twu8h8 1Bitcoi614uwChefc5P2Um7GBebutDdjAA 1Bitco321EUbjDUQFahguAA7WEME68wx2m 1Bitcopt1Pf7RmFmisdQxaZUKqhW4tLBB1 1Bitc1in15tA5fiT9JxENbMqnPu4QyfgPX 1Bitc48n1Q2Kr5Erk8GrFACcGVSiEjkDWb 1Bita87ppKePLztu6CDe7Nq4rzkqurmjc6 1Bituiot18g2HwfVBmnb6g2eh3QRr2D853 Title: Re: Notepad++ sort by the largest number of the same results Post by: Pmalek on March 24, 2020, 06:39:09 PM I don't have access to my other PC where I have Notepad++ installed on but if I remember correctly there are various different ways you can sort data by clicking on Edit > Line Sorting > and then you have a bunch of different options. Click through those to see if it manages to sort the addresses the way you want it to.
Title: Re: Notepad++ sort by the largest number of the same results Post by: inlovewiththedj on March 24, 2020, 07:25:52 PM I don't have access to my other PC where I have Notepad++ installed on but if I remember correctly there are various different ways you can sort data by clicking on Edit > Line Sorting > and then you have a bunch of different options. Click through those to see if it manages to sort the addresses the way you want it to. I have tried your method and not arranged as I want like in my example Title: Re: Notepad++ sort by the largest number of the same results Post by: HeRetiK on March 24, 2020, 08:53:59 PM You'll probably have to use a script for the kind of sorting you are looking for.
Here, I've hacked a little something together that you can use as a starting point: Quote from: https://jsfiddle.net/bpu8akLz/ Code: var input = ['1BitcoinJNVRfTPxCJeA5UsSA5g4Twu8h8', Title: Re: Notepad++ sort by the largest number of the same results Post by: NotATether on March 29, 2020, 06:22:11 PM OP, there might be a mistake in your sorting output. You ask for the order with letters before numbers:
Quote 1Bitcoin1DomR3kFvRVUyqvF357zZes4PD 1Bitcoin1H54ZwxFMDFod8vtz55dweqnz7 1Bitcoin13gGce1XJu6ni1EisMe5iPcguf 1Bitcoin17ybmkj3qH7VyT5XjdnXaz3ZBa But here you also have an order with numbers before letters: Quote 1Bitco321EUbjDUQFahguAA7WEME68wx2m 1Bitcopt1Pf7RmFmisdQxaZUKqhW4tLBB1 So I'm going to assume you want numbers before letters. I have a perl script which can run on Unix and Linux machines since perl is already installed on most of those operating systems. Copy this into a perl console and press Ctrl-D (the "EOF" character) to run it: Code: use warnings; And I also have a powershell script which I know works on Windows 7 and later, it most likely works on older versions as well. You should copy and paste this into a Powershell console because it doesn't like to run script files for some reason. Code: $myInput = @( Both of these will print the following output, numbers before letters, without the boldface formatting: Quote 1Bitcoin13gGce1XJu6ni1EisMe5iPcguf 1Bitcoin17ybmkj3qH7VyT5XjdnXaz3ZBa 1Bitcoin1DomR3kFvRVUyqvF357zZes4PD 1Bitcoin1H54ZwxFMDFod8vtz55dweqnz7 1BitcoinJNVRfTPxCJeA5UsSA5g4Twu8h8 1Bitcoi614uwChefc5P2Um7GBebutDdjAA 1Bitco321EUbjDUQFahguAA7WEME68wx2m 1Bitcopt1Pf7RmFmisdQxaZUKqhW4tLBB1 1Bitc1in15tA5fiT9JxENbMqnPu4QyfgPX 1Bitc48n1Q2Kr5Erk8GrFACcGVSiEjkDWb 1Bit987ppKePLztu6CDe7Nq4rzkqurmjc6 1Bituiot18g2HwfVBmnb6g2eh3QRr2D853 Title: Re: Notepad++ sort by the largest number of the same results Post by: HCP on March 29, 2020, 08:16:55 PM How to sort text in Notepad ++ (or other tool) like in bellow at the very top after sorting there will be addressess with the names most often repeating or closest, then subsequent, subsequent and subsequent ones as in the example below Which is more important to the sort? "closest match" or the "most often repeating"... ??? I'm guessing it is "closest match" as in your example you have 2x "1Bitco" and "1Bitc" but they are sorted AFTER only 1x "1Bitcoi" Quote 1Bitcoin1DomR3kFvRVUyqvF357zZes4PD 1Bitcoin1H54ZwxFMDFod8vtz55dweqnz7 1Bitcoin13gGce1XJu6ni1EisMe5iPcguf 1Bitcoin17ybmkj3qH7VyT5XjdnXaz3ZBa 1BitcoinJNVRfTPxCJeA5UsSA5g4Twu8h8 1Bitcoi614uwChefc5P2Um7GBebutDdjAA 1Bitco321EUbjDUQFahguAA7WEME68wx2m 1Bitcopt1Pf7RmFmisdQxaZUKqhW4tLBB1 1Bitc1in15tA5fiT9JxENbMqnPu4QyfgPX 1Bitc48n1Q2Kr5Erk8GrFACcGVSiEjkDWb 1Bita87ppKePLztu6CDe7Nq4rzkqurmjc6 1Bituiot18g2HwfVBmnb6g2eh3QRr2D853 Title: Re: Notepad++ sort by the largest number of the same results Post by: Soldierswitlittlefaith on March 29, 2020, 08:40:24 PM i have always wanted to save time when sort out saved doc(especially user id & pw) on pc
but, i've tried wordpad, wordpad++ but, this does not seem to provide any exact result based on the saved doc. However, i find blocknote & wordpad++ to be a little bit more effective but, you need to use the small search box on your pc/notebook in order to access the exact save doc based on the search term. Note : searching for the save term directly by opening the doc will not yield full result. Thanks Soldierwitlittlefaith Title: Re: Notepad++ sort by the largest number of the same results Post by: Chlotide on March 30, 2020, 12:16:43 AM i have always wanted to save time when sort out saved doc(especially user id & pw) on pc I would really advise to use a password manager in this case. Text document for user+pass is a definite no-no |