Skip to content

Latest commit

History

History
19 lines (10 loc) 路 345 Bytes

shuf.md

File metadata and controls

19 lines (10 loc) 路 345 Bytes

shuf

Generate random permutations.

  • Randomize the order of lines in a file and output the result:

shuf {{filename}}

  • Only output the first 5 entries of the result:

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

  • Write output to another file:

shuf {{filename}} -o {{output_filename}}

  • Generate random numbers in range 1-10:

shuf -i {{1-10}}