LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Program to organise entries in a text file alphabetically (https://www.linuxquestions.org/questions/linux-general-1/program-to-organise-entries-in-a-text-file-alphabetically-643912/)

felipe1982 05-21-2008 08:46 PM

Program to organise entries in a text file alphabetically
 
http://fulloffacts.com/get/datos-de-tangos.txt.gz

I'm looking for a program that will organise the contents of the above file. It is grouped into parts, and the individual parts must remain the same/intact. only the FIRST LINE must be used as a candidate for alphabetising.

Anybody know of such a program? Is this hard to do? Anybody want to do it for me :D and save me a headache?

eggixyz 05-21-2008 11:01 PM

Hey There,

sed and/or awk should be able to do that for you

Best wishes,

Mike


All times are GMT -5. The time now is 05:59 PM.