#! /usr/bin/ksh
count=$# //总共输入参数
cmd="echo"
while [[ $count -gt 0 ]]
do
cmd="$cmd \$$count "
count=`expr $count - 1`
done
eval $cmd
本文共 186 字,大约阅读时间需要 1 分钟。
#! /usr/bin/ksh
count=$# //总共输入参数
cmd="echo"
while [[ $count -gt 0 ]]
do
cmd="$cmd \$$count "
count=`expr $count - 1`
done
eval $cmd
转载于:https://www.cnblogs.com/Berryxiong/p/4809594.html