I used the following find command to search files
find /tmp -regex ".*some_file"
How I can to search on the same way directories开发者_如何学Python?
Yael
Add the -type d
test:
find /tmp -type d -regex ".*some_dir"
find /tmp -regex ".*some_dir" -type d
If I understood your question correctly:
find /tmp -regex "some_dir" -type d
精彩评论