for (( i=1; i<=$#; i++ ))
do
echo "$($i)" <---this is not correct, how should i fix that?
done我想打印所有参数。
发布于 2014-11-27 19:57:57
for arg; do
echo "$arg";
done或
for ((i=0; i<=${#@}; i++ )); do
echo "${!i}"
done或
for arg in "$@"; do
echo "$arg";
donehttps://stackoverflow.com/questions/27177896
复制相似问题