shell脚本:检查hosts.equiv内容,红色显示+号,其它配置信息绿色显示
if [ `grep -v "#" /etc/hosts.equiv|wc -l` -gt 0 ];then
echo "This host has the hosts.equiv configuration,detailed configuration is:\n "
grep -v "#" /etc/hosts.equiv|while read i
do
echo $i|awk '{for(i=1;iecho "\n"
done
echo "\033[0m\n"
fi
阅读(1310) | 评论(0) | 转发(0) |