Thursday, July 26, 2012

random shuffle of lines in a text file


cat conplaylist.txt | perl -MList::Util=shuffle -e 'print shuffle();' > conplaylist_shuffle.txt

or 

cat conplaylist.txt | sort -R > conplaylist_shuffle

No comments:

Post a Comment