Welcome to the most active Linux Forum on the web.
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 03-17-2005, 12:49 AM   #1
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 547

Rep: Reputation: 30
Alphabetizing a list of items not possible in text editor?

I've got a list of many items (1000+ items) and I need them to be alphabetized in my text editor. e.g.

Turning a list such as



pen <<< --- alphabetized result

All of the text editors I've tried including:
* kate
* kwrite
* kedit
* gedit

Do NOT support this feature!

Is there any way I could find a text editor that does, or a bash script or shell command that could do this?

Old 03-17-2005, 01:00 AM   #2
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 126Reputation: 126
man sort.

cat FILE | sort > FILE2

The sort manpage will give you all the options you could want.


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
Which light text editor can copy text from file and paste in browser? davidas Linux - Software 9 03-06-2006 12:28 PM
Querying for data and porinting to a datagrid based on items in a list box mrobertson Programming 8 07-29-2005 02:23 PM
Take all posts that are news items out of the Zero Reply Threads list t3gah LQ Suggestions & Feedback 3 03-21-2005 09:38 AM
text editor dauphinfay Linux - General 2 02-29-2004 10:37 PM
List controls for search items... Thymox LQ Suggestions & Feedback 2 05-21-2002 09:16 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:02 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration