I want to list the directory path which contains the required directory.
For example:
/usr1
|
|
-----------------------------------------
| |
/local1 /local2
| |
dir1 dir1
I want to find the directory path where dir1 is present using wild card *
.
From linux command line I can do this to get the result.
find /usr1/local* -name dir1 -type d
then it will shows
/usr1/local1/dir1
/usr1/local2/dir1
The same way how can I do with File::Find perl module.
I don't want to use system
or ``
to get it done.