Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: sorting CSV files

by swkronenfeld (Hermit)
on Nov 30, 2005 at 18:37 UTC ( #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? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2022-12-07 16:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?