打印一个随机的8位数字

如果您只是告诉不要使用空分隔符字符,则不需要将输出管道传送到rs。
.

0

linux命令:jot -s '' -r -n 8 0 9 9 0 8 -n -r '' -s jot jot -s '' -r -n 8 0 9rootopen.com
linux命令:jot -s '' -r -n 8 0 9 9 0 8 -n -r '' -s jot jot -s '' -r -n 8 0 9rootopen.com
mwij 2018-02-05 06:41:48
输出
替代方案1 打印一个随机的8位数字

.

linux命令:jot -r -n 8 0 9 | rs -g 0 0 -g rs | 9 0 8 -n -r jot jot -r -n 8 0 9 | rs -g 0rootopen.com
linux命令:jot -r -n 8 0 9 | rs -g 0 0 -g rs | 9 0 8 -n -r jot jot -r -n 8 0 9 | rs -g 0rootopen.com
.
输出

评论

相关推荐

linux命令:jot -s '' -b '-' 50 50 '-' -b '' -s jot jot -s '' -b '-' 50rootopen.com
linux命令:jot -s '' -b '-' 50 50 '-' -b '' -s jot jot -s '' -b '-' 50rootopen.com
.

对于没有seq的基于BSD的系统(包括OS X),此版本在未设置$ COLUMNS的情况下提供默认使用tput:jot -b'#'-s''$ {COLUMNS: - $(tput COLS)}

linux命令:jot -b '#' -s '' $COLUMNS $COLUMNS '' -s '#' -b jot jot -b '#' -s '' $COLUMNSrootopen.com
linux命令:jot -b '#' -s '' $COLUMNS $COLUMNS '' -s '#' -b jot jot -b '#' -s '' $COLUMNSrootopen.com
.

linux命令:jot -b '' 100 100 '' -b jot jot -b '' 100rootopen.com
linux命令:jot -b '' 100 100 '' -b jot jot -b '' 100rootopen.com
.

所以我使用OSX并且没有shuf命令。这是我能想出的。这个命令假定/ usr / share / dict / words不超过137,817,948行,并且行选择不是一致随机的。

linux命令:jot 4 | awk '{ print "wc -l /usr/share/dict/words | awk '"'"'{ print \"echo $[ $RANDOM * $RANDOM % \" $1 \"]\" }'"'"' | bash | awk '"'"'{ print \"sed -n \" $1 \"p /usr/share/dict/words\" }'"'"' | bash" }' | bash | tr -d '\n' | sed 's/$/\n/' 's/$/\n/' sed | '\n' -d tr | bash | }' bash" | }'"'"' /usr/share/dict/words\" \"p $1 \" -n \"sed print '"'"'{ awk | bash | }'"'"' \"]\" $1 \" % $RANDOM * $RANDOM $[ \"echo print '"'"'{ awk | /usr/share/dict/words -l "wc print '{ awk | 4 jot jot 4 | awk '{ print "wc -l /usr/share/dict/words | awk '"'"'{ print \"echo $[ $RANDOM * $RANDOM % \" $1 \"]\" }'"'"' | bash | awk '"'"'{ print \"sed -n \" $1 \"p /usr/share/dict/words\" }'"'"' | bash" }' | bash | tr -d '\n' | sed 's/$/\n/'rootopen.com
linux命令:jot 4 | awk '{ print "wc -l /usr/share/dict/words | awk '"'"'{ print \"echo $[ $RANDOM * $RANDOM % \" $1 \"]\" }'"'"' | bash | awk '"'"'{ print \"sed -n \" $1 \"p /usr/share/dict/words\" }'"'"' | bash" }' | bash | tr -d '\n' | sed 's/$/\n/' 's/$/\n/' sed | '\n' -d tr | bash | }' bash" | }'"'"' /usr/share/dict/words\" \"p $1 \" -n \"sed print '"'"'{ awk | bash | }'"'"' \"]\" $1 \" % $RANDOM * $RANDOM $[ \"echo print '"'"'{ awk | /usr/share/dict/words -l "wc print '{ awk | 4 jot jot 4 | awk '{ print "wc -l /usr/share/dict/words | awk '"'"'{ print \"echo $[ $RANDOM * $RANDOM % \" $1 \"]\" }'"'"' | bash | awk '"'"'{ print \"sed -n \" $1 \"p /usr/share/dict/words\" }'"'"' | bash" }' | bash | tr -d '\n' | sed 's/$/\n/'rootopen.com
.
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

推荐
    热门命令