2010-07-02 106 views

回答

2

添加-type d测试:

find /tmp -type d -regex ".*some_dir" 
1

如果我理解正确你的问题:

find /tmp -regex "some_dir" -type d