Skip to content

Instantly share code, notes, and snippets.

@Koslun
Created July 31, 2015 01:07
Show Gist options
  • Save Koslun/6b7bdd1fc449918fe413 to your computer and use it in GitHub Desktop.
Save Koslun/6b7bdd1fc449918fe413 to your computer and use it in GitHub Desktop.
Randomize lines in file
cat input.txt | perl -MList::Util=shuffle -e 'print shuffle(<>);' > randomized_output.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment