LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 04-21-2005, 12:15 PM   #1
raees
Member
 
Registered: Nov 2003
Posts: 65

Rep: Reputation: 15
Sort utility is miss-behaving under linux


Hi All,
Sort utility is miss-behaving under linux, Let me know if there is a fix /work around or a reasoning !!

here is the test !!
The below content will sort differently on Linux and Solaris for
sort -u

chtc030171OltpSrv_new 571 24 0.03 0.024 18.41
chtc030171OltpSrv_new 457 219 0.19 0.150 87.49
chtc030171OltpSrv_new 677 220 0.17 0.149 120.29
chtc030171OltpSrv_new 1092 209 0.16 0.137 180.93
chtc030171OltpSrv_new 1143 51 0.16 0.086 185.34

Solaris Results ( correct )
--------------------------------
chtc030171OltpSrv_new 457 219 0.19 0.150 87.49
chtc030171OltpSrv_new 571 24 0.03 0.024 18.41
chtc030171OltpSrv_new 677 220 0.17 0.149 120.29
chtc030171OltpSrv_new 1092 209 0.16 0.137 180.93
chtc030171OltpSrv_new 1143 51 0.16 0.086 185.34

Linux Results ( wrong )
------------------------------------------------------
chtc030171OltpSrv_new 1092 209 0.16 0.137 180.93
chtc030171OltpSrv_new 1143 51 0.16 0.086 185.34
chtc030171OltpSrv_new 457 219 0.19 0.150 87.49
chtc030171OltpSrv_new 571 24 0.03 0.024 18.41
chtc030171OltpSrv_new 677 220 0.17 0.149 120.29
 
Old 04-21-2005, 04:10 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
If you sort these numbers, you can see how linux is sorting. No idea what the work around is.
Code:
1
2
3
11
22
33
111
222
333
 
  


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
linux clustering - sort of msound Linux - Networking 1 09-23-2005 09:07 AM
wht u miss in linux? frosty_kgp General 16 09-16-2004 02:33 AM
How can I tell what sort of hard drive my Linux box has? Thrifty Linux - Hardware 4 04-14-2004 08:31 AM
BitTorrent Tracker Behaving Strangely When Run Through Linux Iptables Firewall tvynr Linux - Networking 0 04-07-2004 04:54 PM
Hi guys, Why?, why? is everything so hard to install in linux I miss windows ingcarlosgil5 Linux - Newbie 20 01-17-2004 05:07 AM


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

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