Skip to content

Instantly share code, notes, and snippets.

@DrewAPicture
Created July 15, 2013 04:20
Show Gist options
  • Save DrewAPicture/5997476 to your computer and use it in GitHub Desktop.
Save DrewAPicture/5997476 to your computer and use it in GitHub Desktop.
Randomize lines in a text file. Found here: http://forums.macrumors.com/showpost.php?p=9416801&postcount=2
for i in `cat unusual.txt`; do echo "$RANDOM $i"; done | sort | sed -E 's/^[0-9]+ //' > randorder.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment