Thanks a lot Matthew,

LC_ALL was not set on my computer,
I set it to 'c', and now it is working.

BR,
-- Mehran

-----Original Message-----
From: ext Matthew Woehlke [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 21, 2007 7:41 PM
To: Shokouhi Mehran (Nokia-NET/Tehran)
Subject: RE: Sort

...and telling *me* is not nearly as helpful as telling the list. It WFM
over here. Did you check your locale settings like I suggested?

--
Matthew

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 21, 2007 09:42
To: [EMAIL PROTECTED]
Subject: RE: Sort


Hi,

My file (x) contains:

104   4
10    5

I run
        cat x | sort 

I expect to get (' ' < '4')

10   5
104  4

But I get 

104  4
10   5

Please note that I want to sort them alphabetically, not numerically.
I tried 'sort -k1,1' and it worked.

BR,
-- Mehran
 

-----Original Message-----
From: ext Matthew Woehlke [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 21, 2007 2:36 AM
Cc: Shokouhi Mehran (Nokia-NET/Tehran)
Subject: Re: Sort

[EMAIL PROTECTED] wrote:
> I tried to sort a small file containing the following 2 rows using 
> "cat x | sort"
> 
> 104  4
> 10    5
> 
> But it doesn't work.

That's not a very helpful bug report. What do you get? What did you
expect to get? And did you check your locale settings? ('man sort' talks
about this...)

--
Matthew
"Do you do windows as well?"
"Only when I'm forced to deal with Microsoft..."
   -- from a story by Feech


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to