bug-textutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

numerical sort


From: Gerhard Heinzel
Subject: numerical sort
Date: Sun, 27 Jan 2002 23:28:46 +0100 (CET)

Hello,

I fail to sort a simple ASCII file
that contains two columns of numbers
into proper numerical order (first column)
with gnu sort version 2.0.10:


Here is what happens with "sort -n":
-60.6304 -126.723
-6.00392 -104.131
-59.6326 -126.578

Here is what happens with "sort -d":
-0.05 -0.00784905
0.05 -0.00784905
-0.1 -0.0313996
0.1 -0.0313996
-0.15 -0.0706616
0.15 -0.0706616
-0.2 -0.125652

What's wrong? according to the manual,
both options should work. Of course,
sort without options is not useful here, as expected.

With best greetings
Gerhard Heinzel

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 Gerhard Heinzel                              e-mail: address@hidden
 Max-Planck-Institut fuer Gravitationsphysik (Albert-Einstein-Inst.)
 Institut Hannover, Callinstrasse 38, D-30167 Hannover, Germany
 Tel +49-(0)511-762-2788,               Fax +49-(0)511-762-2784
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --




reply via email to

[Prev in Thread] Current Thread [Next in Thread]