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 -

shared memory - gstreamer shmsrc and shmsink with h264 data -

.net - Bulk insert via Dapper is slower than inserting rows one-by-one -