D
D
daxak2022-02-21 07:46:17
linux
daxak, 2022-02-21 07:46:17

How to use regular expressions in find?

I have 4 folders prepared in advance with the names:
10
100
1000
10000
When I type find -name "10{3}" it doesn't show anything, how to use regular expressions in find

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Karabanov, 2022-02-21
@daxak

How to search filenames by regex with "find"

J
jcmvbkbc, 2022-02-21
@jcmvbkbc

When you type find -name "10{3}" gives nothing, how to use regular expressions in find

the find option -namedoes not support regular expressions. Supports option -regex, see .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question