读取多个命令行参数

5年以前  |  阅读数:476 次  |  编程语言:Shell 
#!/bin/bash

# handing lots of parameters

total=$[ ${10} * ${11} ]
echo The tenth parameter is ${10}
echo The eleventh parameter is ${11}
echo The total is $total

Copyright© 2013-2020

All Rights Reserved 京ICP备2023019179号-8