shell/处理用户输入/读取多个命令行参数.sh

9 lines
164 B
Bash
Raw Normal View History

2016-05-13 21:42:54 +08:00
#!/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