欢迎各位兄弟 发布技术文章
这里的技术是共享的
#!/bin/bash
#
for file in /home/wwwroot/*
do
if [ -d "$file" ]
then
echo "$file is directory"
echo ${file}/public_html/public
if [ -d "${file}/public_html/public" ] ; then
\cp -f /home/wwwroot/ccccc_com/public_html/public/robots.txt ${file}/public_html/public
fi
elif [ -f "$file" ]
then
echo "$file is file"
fi
done