LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

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

Original Poster
Rep: Reputation: 15
sort does the trick
 
  


Reply


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 09:14 PM
how to 'sort' by file extension then alphabetical order adamrosspayne Linux - Newbie 4 07-04-2006 11:53 PM
cutting down contents of text file kam_kenneth Linux - Newbie 2 05-22-2004 02:16 AM
Alphabetical Listing of Text trihai44100 Linux - Software 1 03-13-2004 12:34 PM
List the contents of a directory to a file MasterC Linux - General 19 11-26-2002 11:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:33 AM.

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