![Linux 随机密码生成器-重复 n 次](https://linux22.com/image/1247741/Linux%20%E9%9A%8F%E6%9C%BA%E5%AF%86%E7%A0%81%E7%94%9F%E6%88%90%E5%99%A8-%E9%87%8D%E5%A4%8D%20n%20%E6%AC%A1.png)
dd if=/dev/urandom count=200 bs=1 2>/dev/null|tr "\n" " "|sed 's/[^a-zA-Z0-9]//g'|cut -c-16
我如何重复设定的次数?
答案1
尝试这个:
for i in `seq 10` ; do <your command here> ; done
它将重复<your command here>
10次。
dd if=/dev/urandom count=200 bs=1 2>/dev/null|tr "\n" " "|sed 's/[^a-zA-Z0-9]//g'|cut -c-16
我如何重复设定的次数?
尝试这个:
for i in `seq 10` ; do <your command here> ; done
它将重复<your command here>
10次。