我正在尝试编写一个脚本,它将一组整数作为命令行参数,计算每个整数的平方,然后给出平方和。这是我目前所掌握的. if [ $# = 0 ] echo "Usage: $0 integer-list"fi
doecho "The square of $list is: $(($list*$list))"
done 如你所见,我有一个简单的for循环来处理正方形</
我有以下脚本:#!/test.sh尽管如此,我知道test.sh和./test.sh是一样的,test.sh: Bourne-Again shell script text executable, ASCII text
$ file ./test.sh: Bourne-Again shell script text executable, ASCII te