shuf Command Examples

Generate random permutations. More information: https://www.gnu.org/software/coreutils/shuf.

shuf {{path/to/file}}

shuf --head-count=5 {{path/to/file}}

shuf {{path/to/input_file}} --output={{path/to/output_file}}

shuf --head-count=3 --input-range=1-10 --repeat