今天发现一个问题:
先看下脚本内容:
root@pts/0#cat!$
cat/tmp/test_nginx
ls*.txt|tr‘‘‘\n‘|whilereadline
do
echo$line
if[‘yes‘==‘yes‘]
then
ssh192.168.109.10"echo‘yes‘"
else
ssh192.168.109.10"echo‘no‘"
fi
done
上面脚本很简单,读取当前目录的所有以txt结尾的文..
分类:
系统相关 时间:
2016-12-23 02:25:55
阅读次数:
470