自己编的一个通讯录系统(简陋了点)[3]

[入库:2005年9月19日] [更新:2007年3月24日]

本文简介:

                        echo -ne "The E-mail you input is wrong!\nPlease input again: "
                        read  mail
                        checkmail
        fi
}
 
function checkphone ()
{
        if [ -z "$phone" ]; then phone=0; fi
        if [ -z "$mobile" ]; then mobile=0; fi
        phone_check=`echo $phone | tr ':;",.+<>?/~\!=@#$%^&*[a-zA-Z]{}|' ' ' `
        mobile_check=`echo $mobile | tr ':;",.+<>?/~\!=@#$%^&*[a-zA-Z]{}|' ' ' `
        if [ "$phone_check" != "$phone" ]
                then
                        echo -ne "The Phone Number you input is incorrect!\nPlease input again: "
                        read phone
                        checkphone
        elif [ "$mobile_check" != "$mobile" ]
                then
                        echo -ne "The Mobile Phone Number you input is incorrect!\nPlease input again: "
                        read mobile
                        checkphone
        fi
}
 
function redo ()
{
        select pick in "Name" "E-mail" "Address" "Phone Number" "Moblie Phone Number" "Other Messages" "Exit to the identify menu" "Exit to the main menu" "Quit without save"
                do
                case $pick in
                        Name )
                                echo Please input the name again:
                                read name
                                checkperson
                                redo
                        ;;
                        E-mail )

本文关键:自己编的一个通讯录系统(简陋了点)
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top