Hi All
I ahve a basic script with a screen. Is there anyway that I can make it possible for the user not to type over the ] ie I would like the inpu to be only with the brakcets?
Any suggestions welcome.
eg
DB name:[ ]
function get_fdb {
while [[ 1 -eq 1 ]]
do
tput cup 9 41
read FDB
if [[ -n $FDB ]]
then
chkdb ${FDB}
if [[ $? -eq 0 ]]
then
break
else
disperr "From DB does not exist" 1
fi
fi
done
}