tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Frederick Leung <fleun@doh.health.nsw.gov.au>
Subject: incorrect sort if using multiple keys with mixed order
Date: Thu, 16 Jun 2005 17:20:10 +1000	[thread overview]
Message-ID: <3.0.32.20050616172010.00de77a8@health.nsw.gov.au> (raw)

hello t64-managers,

anyone knows if there is a bug on the sort command ?

DU 5.1A -

for eg. 
I want to sort data first by field 1 in ascending and then
by field 4 in numerically descending order.

but the command "sort -t'^' -k1 -k4nr <file>"  only gives
 the following output which is the same result as given
 by sort -k1 -k4n:-

q^d^D^20050623
q^e^D^20050626
q^f^D^20050628
x^c^D^20050609
x^e^D^20050611
x^h^D^20050616
x^k^D^20050621
y^a^D^20050619
y^b^D^20050621
y^c^D^20050622


Thanks for any response to my problem.

Frederick.
fleun@doh.health.nsw.gov.au




                 reply	other threads:[~2005-06-16  7:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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