Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 5th, 2003, 11:40 PM
ner75 ner75 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: US
Posts: 13 ner75 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 16 sec
Reputation Power: 0
Send a message via AIM to ner75
ASCII ordering with sort command

Hi,

When I use the "sort" command, the results are NOT coming back in ASCII order. I thought the default for this command was to return results in ASCII order.

To illustrate,

myfile contains 3 names:
Ann
$Brad
Carrie

Here is a transcript of when I use the sort command:

[root]# sort myfile
Anne
$Brad
Carrie

However, this is wrong (I think). The correct ASCII ordering of these names would be as follows:

$Brad
Anne
Carrie

...because the $ symbol precedes alphanumberic characters in an ASCII ordering.

How can I alter the sort command to properly ASCII order the names in a file?

Thank you!

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > ASCII ordering with sort command


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway