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
原文链接:https://www.f2er.com/bash/392792.htmlfor 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
原文链接:https://www.f2er.com/bash/392792.html