#!/bin/bash
#filename:99
i=1
while [[ $i -le 9 ]]; do
#statements
j=1
while [[ $j -le $i ]]; do
#statements
result=`expr $j \* $i`
echo -ne "\033[38m$j\033[0m*\033[41m$i\033[0m=\033[35m$result\033[0m\t"
let j++
done
echo ""
let i++
done
原文:http://8577707.blog.51cto.com/8567707/1368934