linux shuf 随机选择器
2017-12-13 16:14
555 查看
有些发布版的linux不带shuf命令,shuf命令包含在coreutils这个包里面。
# shuf --help Usage: shuf [OPTION]... [FILE] or: shuf -e [OPTION]... [ARG]... or: shuf -i LO-HI [OPTION]... Write a random permutation of the input lines to standard output. 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 get random bytes from FILE -r, --repeat output lines can be repeated -z, --zero-terminated end lines with 0 byte, not newline --help display this help and exit --version output version information and exit With no FILE, or when FILE is -, read standard input. GNU coreutils online help: <http://www.gnu.org/software/coreutils/> For complete documentation, run: info coreutils 'shuf invocation'
相关文章推荐
- Linux shuf --随机选择器
- linux下批量创建10个系统账号,密码设置为随机字符串
- 为什么大型互联网应用选择Java+Linux
- 在linux系统中I/O 调度的选择
- Linux 命令行生成随机密码的十种方法
- 关于linux下的嵌入式文件系统以及flash文件系统选择
- 实现无刷新聊天室的文章(客户端为linux,windows情况的不同选择)
- Linux使用NetworkManager随机生成你的MAC地址
- linux命令练习:case选择结构语句练习
- 恰当选择嵌入式Linux环境下的GUI系统
- Linux下产生随机正整数
- The Linux Programming Interface 11 System Limits And Options 系统限制和选择
- 随机算法之随机选择
- linux下 apache和tomcat整合(及服务随机启动)
- Linux系统中Java版本选择
- mahout 0.7关于随机选择数据的一个bug
- 随机选择求第k 大的数
- Linux C笔记3——Shell编程之选择语句
- JS原生代码 随机选择中午吃什么
- 如何选择一个Linux发行版本