diff --git a/pages/linux/shuf.md b/pages/linux/shuf.md new file mode 100644 index 0000000000..bdb66630d3 --- /dev/null +++ b/pages/linux/shuf.md @@ -0,0 +1,19 @@ +# shuf + +> generate random permutations + +- randomize strings position in file + +`shuf {{filename}}` + +- generate random numbers in range + +`shuf -i LO-HI` + +- take first n results from output + +`shuf -n {{n}} {{filename}}` + +- write output to another file + +`shuf -o {{another_filename}} {{filename}}`