设置名字随机vim namezhanmusikebimaididulantekuliqiaozhivim jerry .sh#!/bin/bashj=0for i in $(cat /root/name)do name[$j]=$i let j++done#echo ${name[@]}n1=$(expr $RANDOM % 6)echo ${name[$n1]}~