Usted debe tener una mirada en el argumento de -regextype
find
, ver manpage:
-regextype type
Changes the regular expression syntax understood by -regex and -iregex
tests which occur later on the command line. Currently-implemented
types are emacs (this is the default), posix-awk, posix-basic,
posix-egrep and posix-extended.
supongo que el tipo emacs
no es compatible con el constructo [[:digit:]]
. Lo he probado con posix-extended
y funcionó como se esperaba:
find -regextype posix-extended -regex '.*[1234567890]'
find -regextype posix-extended -regex '.*[[:digit:]]'
¿Qué salida debe indicar que no es? – shellter