From: urban@cobra.jpl.nasa.gov (Michael P Urban)
Subject: Sort keys buggy?
Date: 1996/02/28 [thread overview]
Message-ID: <1996Feb28.190715.9327@llyene.jpl.nasa.gov> (raw)
The output of the command,
sort -k 1 -k 2n
with an input file like:
a 1
a 3
a 4
b 1
b 2
b 3
x 4
y 2
a 10
a 50
b 10
b 20
b 50
z 20
a 25
b 25
does not produce the result I would expect; the second column is
sorted lexicographically instead of numerically. This occurs on HP-UX
9.01, HP-UX 10, and DEC OSF1 V3.2.
Am I misunderstanding the usage of the -k options, or are the DEC and
HP programmers?
Mike Urban
urban@cobra.jpl.nasa.gov
next reply other threads:[~1996-02-28 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-02-28 5:00 Michael P Urban [this message]
1996-02-29 5:00 ` Sort keys buggy? Mike Stroyan
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox