Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Double Sort on a file

by PhiRatE (Monk)
on Jul 22, 2002 at 22:22 UTC ( [id://184259]=note: print w/replies, xml ) Need Help??


in reply to Re: Double Sort on a file
in thread Double Sort on a file

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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-19 21:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found