Do you have a question? Post it now! No Registration Necessary. Now with pictures!
September 30, 2008, 3:29 pm
rate this thread
I am trying to find all directories of a certain name.
I use `find . -name certainName -type d`;
I do not need to go below the current directory.
I tried adding -depth 1 to find but that doesn't do what I want.
Is there a 100% perl way of doing what I need?
I read the documentation for File::Find and it doesn't seem to only
Re: find help
It will find whatever you tell it to find in the wanted() function.
However, because you seem to be interested in the names of the
directories in the current directory only. Therefore File::Find is
Just opendir(), readdir() in list context, and then grep(-d) on the