![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
溾詬
这个作者很懒,什么都没留下…
展开
-
无限显示随机/var/log/下的文件内容随机一行
#!/bin/bash#无线显示随机/var/log/下的文件内容随机一行while :do#num1提取/var/log/下的文件总数目值的随机数字num1=KaTeX parse error: Expected 'EOF', got '#' at position 42: …ype f |wc -l`]#̲filea取出随机/var/l…num1 | tail -1#取消文件内容为...原创 2019-08-26 09:28:41 · 171 阅读 · 0 评论 -
元素池中随机抽取
#!/bin/bash length=8 i=1 seq=(0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) num_seq=${#seq[@]} while [ "...原创 2019-08-28 16:40:46 · 251 阅读 · 0 评论