isnum() {
   local v=$1
   v=`echo $v | sed -e 's/[0-9]//g'`
   if [ ${#v} -gt 0 ]; then return 1; fi
   return 0
}
