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

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -