if [ "$1" = "" ]; then
        echo "Usage: ./getModemParam <index>"
        exit
fi


#CMD=`sed  -n '/init-chat/ p' /nn/etc/ppp/mgetty.config`

CMD=`sed  -n '/init-chat/ p' /opt/etc/mgetty+sendfax/mgetty.config`
#echo $CMD
#AT_CMDS=`echo $CMD | cut -f3 -d" "`

AT_CMDS=`echo $CMD | cut -b27-38`
#echo $AT_CMDS

CMD2=`echo $AT_CMDS | cut -f$1 -d"&"`
echo $CMD2  
