标签:nbsp done root bash zha 随机 exp ash cat
设置名字随机
vim name
zhanmusi
kebi
maidi
dulante
kuli
qiaozhi
vim jerry .sh
#!/bin/bash
j=0
for i in $(cat /root/name)
do
name[$j]=$i
let j++
done
#echo ${name[@]}
n1=$(expr $RANDOM % 6)
echo ${name[$n1]}
~
标签:nbsp done root bash zha 随机 exp ash cat
原文地址:https://www.cnblogs.com/zc1741845455/p/10888802.html