$*和$@区别

for i in "$@"
do
    echo $i
done
# ./test.sh 1 2 3 4
1
2
3
4
for i in "$*"
do
    echo $i
done
# ./test.sh 1 2 3 4
1 2 3 4
posted @ 2017-06-09 13:45  thomas_blog  阅读(145)  评论(0编辑  收藏  举报