1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/shuf.md
2014-09-10 13:48:17 +04:00

305 B

shuf

generate random permutations

  • randomize strings position in file

shuf {{filename}}

  • generate random numbers in range

shuf -i {{low}}-{{high}}

  • take first n results from output

shuf -n {{n}} {{filename}}

  • write output to another file

shuf -o {{another_filename}} {{filename}}