y|Y|[Yy][Ee][Ss] )
echo $name:$mail:$address:$phone:$mobile:$message >> addressbook ;
echo Do you want to add another person [ y or n ,and any other key will exit! ]:
read
case $REPLY in
y|Y|[Yy][Ee][Ss] ) add;;
n|N|[Nn][Oo] ) menu;;
* ) exit 0;;
esac
;;
n|N|[Nn][Oo] ) echo Which one is incorrect? Pick out it :; redo;;
* ) echo -ne "\33[31mError! Please input [ y or n ]: \33[0m"
esac
done
}
function addperson ()
{
echo -n "Input the Name: "; read name ;
echo -n "Input the E-mail: "; read mail ;
echo -n "Input the Address: "; read address ;
echo -n "Input the Phone Number: "; read phone ;
echo -n "Input the Mobile Phone Number: "; read mobile ;
echo -n "Input the other messages if necessary: "; read message ;
check;
identify;
}
function add ()
{
echo Please follow the next steps !
stty erase '^?'