Hi,
I am building this condition check in a loop dynamicallly into a variable say, VAR1..something this this:
for i in 1 2 3
do
VAR1 = "$VAR1"string that builds the condition
done
Now after the for loop I wnat to put this condition into the "if" construct and use it..something like
if ["${VAR1}"]; then
echo "abcd"
else
echo "bmcd"
fi
what is the correct way to do it?
Pat
I am building this condition check in a loop dynamicallly into a variable say, VAR1..something this this:
for i in 1 2 3
do
VAR1 = "$VAR1"string that builds the condition
done
Now after the for loop I wnat to put this condition into the "if" construct and use it..something like
if ["${VAR1}"]; then
echo "abcd"
else
echo "bmcd"
fi
what is the correct way to do it?
Pat