Syntax Issue

view story

http://www.unix.com – Hello all. Need a bit of help... I have : Code: previous_tmp0=`cat tmp0.txt` previous_tmp1=`cat tmp1.txt` previous_tmp2=`cat tmp2.txt` previous_tmp3=`cat tmp3.txt` previous_tmp4=`cat tmp4.txt` previous_tmp5=`cat tmp5.txt` previous_tmp6=`cat tmp6.txt` previous_tmp7=`cat tmp7.txt` Now I want to use the following : Code: for i in 0 1 2 3 4 5 do echo "$previous_tmp$i" if [ ${ARRAY_MOUNT_POINT_CAPACITY[$i]} -eq $previous_tmp$i] then     echo "File Size Same of ${ARRAY_MOUNT_POINT_NAME[$i]}" elif [ ${ARRAY_MOUNT_POINT_CAPACITY[$i]} -gt $ (HowTos)