LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How-to list contents of text file in alphabetical order? (https://www.linuxquestions.org/questions/linux-software-2/how-to-list-contents-of-text-file-in-alphabetical-order-530337/)

sucram2g 02-19-2007 03:30 AM

How-to list contents of text file in alphabetical order?
 
Hi,
I have a text file with ca. 3000 name entries. I want to list them in alphabetical order.
Is there any way i can do this via text editor or bash command/script so that i don't have to manually go through all the names in the list?

Thanx in advance!

sucram2g 02-19-2007 03:39 AM

sort does the trick


All times are GMT -5. The time now is 10:59 AM.