Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: sorting CSV files

by swkronenfeld (Hermit)
on Nov 30, 2005 at 18:37 UTC ( [id://513043]=note: print w/replies, xml ) Need Help??


in reply to sorting CSV files

Don't write a script, just use your *IX command line!

sort -n -t , -k 2 fileName.csv

Slightly expanded, that's

sort --numeric-sort --field-separator=, --key=2 fileName.csv

Of course, if you're on Windows...I'm sorry.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-03-28 21:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found