Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 8 lines (4 sloc) 225 Bytes
#!/bin/sh
# create submission for the Million Song Dataset Challenge:
# http://www.kaggle.com/c/msdchallenge/
sort -g | perl -ne '/(.*?)\t\[(.*)\]/; $u=$1; $s=$2; $s=~s/:.+?,/ /g; $s=~s/:.+//; print "$u\t$s\n"' | cut -f 2