Eu corro o seguinte:
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
Após as execuções acima por um tempo, recebo:
./Transaction_count_prashantN.sh[33]: no space
./Transaction_count_prashantN.sh[33]: no space
./Transaction_count_prashantN.sh[33]: no space
./TranMemory fault