Created
November 13, 2009 13:28
-
-
Save RobFreiburger/233824 to your computer and use it in GitHub Desktop.
Sort CSV entries like Facebook profile favorites alphabetically.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# Sorts CSVs alphabetically and formats | |
use strict; | |
my @csv = split(/,\s?/, join(' ', @ARGV)); | |
@csv = sort @csv; | |
for (my $i = 0; $i < $#csv; $i++) { | |
$csv[$i] .= ","; | |
} | |
print "\n@csv\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment