Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-19-2007, 03:30 AM   #1
Registered: Dec 2004
Location: Uganda
Distribution: SuSE
Posts: 36

Rep: Reputation: 15
How-to list contents of text file in alphabetical order?

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!
Old 02-19-2007, 03:39 AM   #2
Registered: Dec 2004
Location: Uganda
Distribution: SuSE
Posts: 36

Original Poster
Rep: Reputation: 15
sort does the trick


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Arranging Files In Alphabetical order swatward Linux - General 4 12-11-2006 08:14 PM
how to 'sort' by file extension then alphabetical order adamrosspayne Linux - Newbie 4 07-04-2006 10:53 PM
cutting down contents of text file kam_kenneth Linux - Newbie 2 05-22-2004 01:16 AM
Alphabetical Listing of Text trihai44100 Linux - Software 1 03-13-2004 11:34 AM
List the contents of a directory to a file MasterC Linux - General 19 11-26-2002 10:09 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:03 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration