用shell脚本写的一个9*9乘法表
1 脚本如下
[root@ipvs ~]# vim 99.sh #!/bin/bash # 9*9 table # 2015.5.26 by luzhi for i in {1..9} do for j in {1..9} do if [ $j -le $i ] then c=$(( $i*$j )) echo -e -n "$j*$i=$c\t" fi done echo " " done
2 运行效果
转载于:https://blog.51cto.com/luzhi1024/1655462