- #!/bin/sh
- #sh
make_random_strings 16 10000 - #make
10000 strings, the string length:16 -
- for((j=0;
j<$2; j++)) - {
-
str= -
for((i=0; i<$1; i++)) -
{ -
one=`cat /dev/urandom |strings -n 1 | cut -c-1| head -1` -
str=${str}${one} -
} -
-
echo $str - }
生成包含随机字符串的文件的脚本
最新推荐文章于 2022-07-29 14:46:09 发布