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 · 234 阅读 · 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 · 332 阅读 · 0 评论
分享