Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Double Sort on a file

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


in reply to Double Sort on a file

-k5,6

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

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-25 16:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found