
December 8th, 2011, 04:25 AM
|
|
|
|
typo
I generally don't put a colon after a while (as far as I am aware it is redundant).
Code:
_Proceed="$(echo "$_Proceed" | tr "[:lower:]" "[:upper:]")"
is probably not doing what you think due to the usage of the quotes, try:
Code:
_Proceed=$(echo "$_Proceed" | tr "[:lower:]" "[:upper:]" | cut -c 1)
which will also, as a benefit, only return the first character, so "no" or "yes", etc., can be used as valid input
If you are using bash, then your echo commands that use \c will need the -e parameter.
But your main issue is that you have mis-placed the loop/conditional terminators. Without the actual code, what you have is:
Code:
while
if
if
fi
fi
fi
done
fi
__________________
The moon on the one hand, the dawn on the other:
The moon is my sister, the dawn is my brother.
The moon on my left and the dawn on my right.
My brother, good morning: my sister, good night.
-- Hilaire Belloc
|