From 53750372c5261cc3ab66a4da64b76acf8e1d3a93 Mon Sep 17 00:00:00 2001 From: Like-all Date: Wed, 10 Sep 2014 17:58:31 +0400 Subject: [PATCH] shuf: suggestions --- pages/linux/shuf.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/linux/shuf.md b/pages/linux/shuf.md index f2cda31bd..bdf3e75bb 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}}`