古月不傲 发表于 2020-10-7 09:59

linux shuf

本帖最后由 古月不傲 于 2020-10-7 10:07 编辑

      generate random permutations               
synopsis:
      shuf               ...
      shuf -e          ... ...
      shuf -i         LO-HI …
description:
Write a random permutation of the input lines to standard output.
With no FILE, or when FILE is -, read standard input.
Mandatory arguments to long options are mandatory for short options too.
-e, --echo
            treat each ARG as an input line
      
-i, --input-range=LO-HI
            treat each number LO through HI as an input line
      
-n, --head-count=COUNT
            output at most COUNT lines
      
-o, --output=FILE
            write result to FILE instead of standard output
      

--random-source=FILE(I also don't understand how to use this parameter. If anyone knows, please let me know.)
            get random bytes from FILE
-r, --repeat
            output lines can be repeated(In other words, output contents continually and random permutations on the standard output.)
      
-z, --zero-terminated
            line delimiter is NUL, not newline

--help display this help and exit

--version
            output version information and exit

huohua1991 发表于 2020-10-7 11:40

有中文解释吗
页: [1]
查看完整版本: linux shuf