shell/处理用户输入/抓取所有数据.sh

17 lines
223 B
Bash
Raw Permalink Normal View History

2016-05-13 21:42:54 +08:00
#!/bin/bash
# testing $* and $@
count=1
for param in "$*"
do
echo "\$* Parameter #$count = $param"
count=$[ $count+1 ]
done
count=1
for param in "$@"
do
echo "\$@ Paramenter #$count = $param"
count=$[ $count+1 ]
done