sandeepmur
Programmer
hi,
I need to obtain all the variables sent to a shell script.. I am currently doing the fwg but it doesnt seem to be working very well..
tArgs=$#
tArgs=`expr $tArgs + 1`
i=7
while [ $i -lt $tArgs ]
do
echo $i
eval echo \$$i
i=`expr $i + 1`
done
can anyone pl provide a better soln ?
thnx
I need to obtain all the variables sent to a shell script.. I am currently doing the fwg but it doesnt seem to be working very well..
tArgs=$#
tArgs=`expr $tArgs + 1`
i=7
while [ $i -lt $tArgs ]
do
echo $i
eval echo \$$i
i=`expr $i + 1`
done
can anyone pl provide a better soln ?
thnx