diff --git a/pages/linux/shuf.md b/pages/linux/shuf.md index f2cda31bd4..bdf3e75bba 100644 --- a/pages/linux/shuf.md +++ b/pages/linux/shuf.md @@ -2,18 +2,18 @@ > generate random permutations -- randomize strings position in file +- randomize the order of lines in a file and output the result `shuf {{filename}}` -- generate random numbers in range - -`shuf -i {{low}}-{{high}}` - -- take first n results from output +- only output the first n entries of the result `shuf -n {{n}} {{filename}}` - write output to another file `shuf -o {{another_filename}} {{filename}}` + +- generate random numbers in range + +`shuf -i {{low}}-{{high}}`