Re: problem with command sort after uniq -c

2008-03-11 Thread Damien ANCELIN
You're right, my locale is set to fr_FR. I've tried with en_EN and en_US, and it works fine (and with -k1,1 too). I think I understand the problem with the locale fr_FR : in french, to write 123456.78 in a easily readable form you write 123 456,78 (and in english it's 123,456.78). Thanks

problem with command sort after uniq -c

2008-03-10 Thread Damien ANCELIN
Hello, I met a problem with the sort command : I've used the uniq command with the -c option to count some numbers, and then applying sort -n don't sort lines by numeric order of the first field. Here is an example (my sort version is 5.97) : $ cat bug_sort | sort -n 1320 51970 1692 12345

Re: problem with command sort after uniq -c

2008-03-10 Thread Philip Rowlands
On Mon, 10 Mar 2008, Damien ANCELIN wrote: I met a problem with the sort command : I've used the uniq command with the -c option to count some numbers, and then applying sort -n don't sort lines by numeric order of the first field. Here is an example (my sort version is 5.97) : $ cat bug_sort

Re: problem with command sort after uniq -c

2008-03-10 Thread Andreas Schwab
Damien ANCELIN [EMAIL PROTECTED] writes: I met a problem with the sort command : I've used the uniq command with the -c option to count some numbers, and then applying sort -n don't sort lines by numeric order of the first field. Here is an example (my sort version is 5.97) : $ cat bug_sort

Re: problem with command sort after uniq -c

2008-03-10 Thread Bauke Jan Douma
Andreas Schwab wrote on 10-03-08 19:54: Damien ANCELIN [EMAIL PROTECTED] writes: I met a problem with the sort command : I've used the uniq command with the -c option to count some numbers, and then applying sort -n don't sort lines by numeric order of the first field. Here is an example (my

Re: problem with command sort after uniq -c

2008-03-10 Thread Bob Proulx
Bauke Jan Douma wrote: What might have been the case here, and which is a situation that I find myself in sometimes, is this: you want to do 'filter1 FILE | filter2' (or 'filter1 FILE | filter2'). Somehow the output isn't what's to be expected. You investigate, and part of that is