我运行以下命令:
for i in `ls -ld /u03/sss/| awk '{print $9}'`
do
echo $i
for j in `find $i -name "*.gz" | grep $send_sysdate`
do
count=`gunzip -c $j | wc -l`
sum5=`expr $sum5 + $count`
done
#echo $sum5
echo "Transaction count for Socal Server Last month is $sum5 \n">> /tmp/count.txt
done
上述操作运行一段时间后,我收到:
./Transaction_count_prashantN.sh[33]: no space
./Transaction_count_prashantN.sh[33]: no space
./Transaction_count_prashantN.sh[33]: no space
./TranMemory fault