shell脚本编程规范小案例-有趣的小例子!

1.编写一个小脚本程序sumsquare.sh,计算两个整数的平方和。例:执行sumsquare.sh 3 4时,输出结果为25 [[email protected] ~]# vi sumsquare.sh-1.0 #!/bin/bash #计算两个整数的平方和 echo "$1和$2的平方和是" `expr $1 \* $1 + $2 \* $2`     ------上面这句也可以换成   e
相关文章
相关标签/搜索