x1 was previously assigned a number, but it is supposed to call on the value that was previously assigned to x1, y1, x2 ...etc...etc...
this code will give a better explanation of what I'm trying to do...
if [ $x1 -ge 10 ];
if [ $x1 == 10 ];
elif [ $x1 == 11 ];
elif [ $x1 == 12 ];
elif [ $x1 == 13 ];
elif [ $x1 == 14 ];
elif [ $x1 == 15 ];
if x1 was previously defined as:
then x1 would obtain the value of B
I'm trying to make this into a for loop so that it will do it for all of the different parts (y1, x2, y2, ...etc...etc).
This will greatly shorten the length of the code...
This clearly doesn't work:
for PART in x1 y1 x2 y2 x3 y3
if [ $$PART -ge 10 ];
I know there's a different way to do this?