for ix in 0 1 2 3 4 5 6 7 8 9 do for iy in 0 1 2 3 4 5 6 7 8 9 do n=`expr ${ix} '*' ${iy}` echo $n >> multtable.txt done done