laziness, impatience, and hubris | |
PerlMonks |
Re: sorting CSV filesby swkronenfeld (Hermit) |
on Nov 30, 2005 at 18:37 UTC ( [id://513043]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|