Thursday, 19 September 2013

print a variable using another

print a variable using another

I have my script setup like this, i want to print switch names using loop.
swn1="something"
swn2="somethingelse"
for (( i=1; i<="$ii"; i++ ))
do
echo "$swn$i "
done
I have searched and searched but no luck, can anyone help me how to print
swn using for loop ?

No comments:

Post a Comment