Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Double Sort on a file

by rbc (Curate)
on Jul 22, 2002 at 22:09 UTC ( #184253=note: print w/replies, xml ) Need Help??

in reply to Double Sort on a file


Replies are listed 'Best First'.
Re: Re: Double Sort on a file
by PhiRatE (Monk) on Jul 22, 2002 at 22:22 UTC
    I believe that actually merges the two columns as a single key, as opposed to using two keys (at least, thats the impression I get from the somewhat ambiguous man page). Thus, it would work fine if the two keys are next to each other (as they are in this case) and both strings. But for a numeric sort on column 1 and a string sort on column 2, you need to specify the keys independantly (-n -k 1 -k 2).

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://184253]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2023-09-29 21:10 GMT
Find Nodes?
    Voting Booth?

    No recent polls found