Anybody know how to use a case statment inside of another case statement? I can’t seem to get the second statement to hold. (syntax error)
it should work. Might be better off just using an if statement though. What language? Any compilation errors? Does the program run?
what shell are you scripting in?
if you do your statements normally it will work.
if [ conditional ]
else
if [conditional]
fi
fi
it’s the bourne shell. I figured it out. I needed ;; after the first esac but not the second. Also we had to make the script without using if statements. Thanks for the help guys.
wow this is why i dont post at night.