sorry still me but questions come to my mind while i'm working at the script...i am performing a series of IF tests, and lets say that after a
if.....then
fi
i want to go back where i started, so for example i've written:
echo "Now that you are in $choice, would you like to create some files? {y/n} \c"
read userchoice
if [ "$userchoice" = y ]
then
../esterno #it goes to another file i have created
else
#go back to the first question that was
# echo "Would you like to create a directory named $choice? {y/n} \c"
how can i do that without rewriting the same code? hope my questions are clear....
thank you guys!