![]() |
![]() ![]() ![]() ![]() ![]()
|
next newest topic | next oldest topic |
Author | Topic: how to sort numbers? | |
SamuelSacher Member |
![]() ![]() ![]()
Is there a simple solution (in Kyma or elsewhere on Mac, or PC) to sort a list of numbers written in a word processor document? attached is demo list - as a illustration how to order - sort them by "size" a son of my friend solved that in no time on linux, even explained (tried to) to me how it's done, in perfect geekish ... any solutions for us mortals? s IP: Logged | |
pete Member |
![]() ![]() ![]() Hi Samuel Import them into Excel and it will sort no problem. Pete IP: Logged | |
pete Member |
![]() ![]() ![]()
not quite so simple after the import you will need to make a second column with formula =VALUE(SUBSTITUTE(A1,"d hz","",1)) And then sort using that column Pete IP: Logged | |
photonal Member |
![]() ![]() ![]() or on OSX: 1) open up Terminal (in Utilities) 2) type "sort -n" (without the speech marks) 3) drag somelist.txt onto the terminal window so you should now have something like: andrew$ sort -n /Users/USERNAME/Desktop/somelist.txt 4) continue to type " > /Users/USERNAME/Desktop/somesortedlist.txt" (again without the speech marks) 5) hit return This passes your somelist.txt file to the sort command with the -n (numeric sort) option and redirects the output to a new file called somesortedlist.txt. Edit USERNAME according to your own username so that the path to the files are right. [This message has been edited by photonal (edited 15 January 2012).] IP: Logged | |
SamuelSacher Member |
![]() ![]() ![]() Thanx photonal! well your explanation is very similar to the one I received for linux IP: Logged | |
SamuelSacher Member |
![]() ![]() ![]() and also ... thank you Pete, but I don't have excel, and in openoffice, as I said, it doesn't work as it should (that 2 is before 10) thank you for help anyway! IP: Logged | |
pete Member |
![]() ![]() ![]()
Thats what the formula is for. It turns the text into a number and stops 10 and 1 coming next to each other. Attached is the results from the spread sheet. Pete IP: Logged | |
SamuelSacher Member |
![]() ![]() ![]() Hi Pete o.k., I'll try the formula with openoffice when I install it on mac although it seems that I mastered the "terminal on osx" approach thanx for helping me out people! I knew that Kyma forum will find the solution ss IP: Logged | |
SamuelSacher Member |
![]() ![]() ![]() quote: IP: Logged | |
SamuelSacher Member |
![]() ![]() ![]() sorry for the last entry my mistake ... IP: Logged |
All times are CT (US) | next newest topic | next oldest topic |
![]() ![]() |
This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.