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

Popular posts from this blog

c++ - CPP, 'X' button listener -

Get Max value from table in hibernate -

r - geom_bar tied exactly to x and y axis (without aggregating) -