some bash shell scripting
hey guys, im trying to write a shell script for bash. here's the basic idea
count=$#
while [ $count -gt 0 ]
do
let input=$#-count+1
echo $input
let count=count-1
done
what i want it to do is just list all the paramaters, ie if i type in
command x y z
i want it to return x y z.
however, wut it does here is return the value of input. in this case i would see 1 2 3. does anyone kno how i can make $input into a positional variable??
|