#!/bin/bash
while 1
do
echo "Enter P for PML"
echo "Enter V for VVL"
echo "Enter L for LNL"
echo "Enter G for GDL"
read choice
case $choice in
[qQ]) break;;
P) do P stuff;;
V) do V stuff;;
L) do L stuff;;
G) do G stuff;;
*) echo "Wrong media Choice; Please try again";;
esac
done
Hi, yes, er smallish error there replace the "while 1" with "while true". sorry, that was an odd mixture of C and BASH.
shuffles off, muttering I must try harder .....
Its working, thanx for your help buddy, but i think i will come to you again because i m not able to incorporate the script in my old script. Lets see, Will inform u by day end.
hey buddy, it working perfectly, but as soon as an operator enters correct option, the script should come out of loop, instead of that it continues to ask for option except when operator enters "Q".