Linux-shell脚本99乘法表

脚本文件写法

#!/bin/bash
#
#-------------------------------------------
# Version: ? 1.0
# Date: 2021/4/8
# Author: wangxinggang
# Email: 455434332@qq.com
# Description: This is the first script
# License: GPL
# ------------------------------------------
for i in {1..9};do
for j in `seq $i`;do
let result=$[i*j]
echo -e "${j}x${i}=$result\t\c"
done
echo
done

写完执行效果

Linux-shell脚本99乘法表

 

Linux-shell脚本99乘法表

上一篇:Google Earth Engine(GEE)——将自己做的影像添加到GEE中ASSET中


下一篇:Shell编程错误 – syntax error near unexpected token `then'