find - finding files with names in numeric text -
i trying find files in current directory names contains numeric digits 111 1101 3348 444. tried
find . -name "[0-9]\+" -type f
but not work when run
find . -name "[0-9]*" -type f
this works , can 1 explain why first command not finding numeric file names ?
the -name
argument accept unix glob.
you can't use regex inside of it. use -regex
if need more power, need match path.
Comments
Post a Comment