Bash case structure (looping)
Hey, i'm really not sure what the best way is to 'loop' a case strcture back to the top, i've looked through many howto's but can't seem to find a method. This is what i'm on about. Example:
case $OPT in
echo "---- Help ----"
echo "Next: jumps this section"
echo "Edit: edit's the chain"
What do i do here in order to make any other entry 'loop' back to the start of the case structure instead of ending, the only way i want this case structure to end is if the user inputs "N"/"Next". I could do it by containing the case structure within a function and calling that function in anything other than "Next", but that may get messy no? I'm reall not sure.
One more thing is: How can i pass input from a shell script into an interactive program, e.g passwd.