shell input parameter
来源:互联网 发布:淘宝美工难吗 编辑:程序博客网 时间:2024/06/01 09:23
====================================================================================
$1...$n express first parameter...n parameter
$# express parameter count
eval echo \$$#
shift 'expr $# - $i'
====================================================================================
The following two writing are the same:
for arg in $*
for arg in $@
The following two writing are different:
for arg in $*
for arg in "$@"
Note:
$*: transfer 'a b' c to a b c
$*: Replace command parameters to $1, $2...
$@: Replace command parameters to "$1", "$2"...
====================================================================================
$1...$n express first parameter...n parameter
$# express parameter count
eval echo \$$#
shift 'expr $# - $i'
====================================================================================
The following two writing are the same:
for arg in $*
for arg in $@
The following two writing are different:
for arg in $*
for arg in "$@"
Note:
$*: transfer 'a b' c to a b c
$*: Replace command parameters to $1, $2...
$@: Replace command parameters to "$1", "$2"...
====================================================================================
- shell input parameter
- Linux input variable parameter
- Shell Parameter Expansion之一
- Shell parameter expansion
- shell编程入门之parameter
- adb shell input 命令
- adb shell input 命令
- adb shell input 命令
- android shell input
- adb shell input command
- adb shell input event
- adb shell input...............
- adb shell input
- adb shell input 命令
- adb shell input 命令
- adb shell input
- adb shell input 事件
- android shell 命令--- input
- java集合类比较
- shell add & test & echo
- 网络协议栈(10)netfilter
- Spring中常用的hql查询方法(getHibernateTemplate())
- 动态设置是否锁屏等
- shell input parameter
- sms class
- Java日期格式化及其使用例子收集
- Observer - 观察者模式
- VMware Network Adapter VMnet1和VMnet8 未识别的网络的解决方法
- Behavior-driven development(BDD)
- [KMP-NEXT数组特性]HDU 3336 Count the string
- Linux实践工程师学习笔记十一:PAM认证模块
- android:paddingLeft与android:layout_marginLeft的区别