#! /usr/bin/ksh
count=$# //总共输入参数
cmd="echo"
while [[ $count -gt 0 ]]
do
cmd="$cmd \$$count "
count=`expr $count - 1`
done
eval $cmd
时间: 2024-10-03 00:33:19
#! /usr/bin/ksh
count=$# //总共输入参数
cmd="echo"
while [[ $count -gt 0 ]]
do
cmd="$cmd \$$count "
count=`expr $count - 1`
done
eval $cmd