X-Git-Url: https://git.llucax.com/z.facultad/75.08/llamadas.git/blobdiff_plain/e8a427f2a1bc8fce0e9fe98be4cc86362daedd97..cd298eb4af5e06e73979d9ea19465e4bdea269e1:/util.sh diff --git a/util.sh b/util.sh index 9569636..51bf285 100755 --- a/util.sh +++ b/util.sh @@ -40,6 +40,16 @@ preguntar () { done } +validar_solo_numeros () { + TEST=`echo "$1" | sed "s/[0-9]*//g"` + if [ "$TEST" == "" ] ; then + #Ok, son solo numeros + return 0 + fi + # ups, hay algo que no es un numero + return 1 +} + #leer "Ingrese un directorio" "/tmp" ALGO #echo "Ingresaste : $ALGO"