# 判断hosts中有域名
if cat '/etc/hosts' | grep "$input_domain" > /dev/null
then
    echo "域名为$input_domain已存在"
    domain_flag=''
    continue
fi

相关文章: