0
I have a plaintext list organized in the following format:
[file pathname] [track name] [artist name] [numerical value]
e.g.:
C:\Users\Somi\Music\Shaheedi.mp3 Shaheedi [By.NagRa] [Rp] Pasla Jatha Birmingham 140.01
C:\Users\Somi\Music\08 - Idgaf.mp3 Idgaf Bohemia (www.nannu.info) 88.01
C:\Users\Somi\Music\08 - Klasikhz - Hangower.mp3 Hangower Klasikhz 101.06
C:\Users\Somi\Music\4. Manni Sandhu - Pegg 2012[CrazyMasti.Com].mp3 4. Manni Sandhu - Pegg 2012[CrazyMasti.Com] Manni Sandhu[CrazyMasti.Com] 103.01
C:\Users\Somi\Music\5. Manni Sandhu - Jaan Sadi[CrazyMasti.Com].mp3 5. Manni Sandhu - Jaan Sadi[CrazyMasti.Com] Manni Sandhu[CrazyMasti.Com] 94.01
C:\Users\Somi\Music\6. Manni Sandhu - Gidhian Di Rani[CrazyMasti.Com].mp3 6. Manni Sandhu - Gidhian Di Rani[CrazyMasti.Com] Manni Sandhu[CrazyMasti.Com] 95.00
C:\Users\Somi\Music\7. Manni Sandhu - Door Ni Kulne[CrazyMasti.Com].mp3 7. Manni Sandhu - Door Ni Kulne[CrazyMasti.Com] Manni Sandhu[CrazyMasti.Com] 94.00
C:\Users\Somi\Music\8. Manni Sandhu - Bottle[CrazyMasti.Com].mp3 8. Manni Sandhu - Bottle[CrazyMasti.Com] Manni Sandhu[CrazyMasti.Com] 123.99
Each entry in the list is separated from the succeeding one by a hard return. It also seems as though the terminal numerical value is separated from the rest of the line by a tab. Is there some way to sort these entries by that terminal numerical value? That is, is there some way I can get them all arranged such that the terminal numerical values are either ascending or descending?
I am running OS X Lion, but if needed, I can just transfer the text file to a Windows machine.
Any help is appreciated.
Give us more data and info. We need to see more records. It looks like all the lines are variable length, right? Are there separators in the line or is it just varying number of spaces? – Jan Doggen – 2013-05-17T06:50:33.900
Okay, I've added some more sample inputs. – voxanimus – 2013-05-18T07:59:15.710
if it helps you, i've uploaded the source file for download here: http://www.mediafire.com/view/?555jioewcto5w4y
– voxanimus – 2013-05-18T09:00:13.487