纯手工写出来的啊!
filename=file_`date +%Y%m%d`.txt
filenum=`find /home/oracle -name $filename|wc -l`
if [ $filenum -eq 0 ]
then
echo " file not find! "
else
infonum=`cat /home/oracle/$filename|grep "\^"|wc -l`
if [ $infonum -eq 0 ]
then
echo "^ not find! "
else
echo " file normal! "
fi
fi