LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   How can I find all directories with subdirectories with find? (http://www.linuxquestions.org/questions/linux-software-2/how-can-i-find-all-directories-with-subdirectories-with-find-885798/)

Ujjain 06-11-2011 04:17 PM

How can I find all directories with subdirectories with find?
 
I use Plogger for my ImageGallery with the broadway2 theme, because it's the only AJAX gallery that is not incredibly ugly (Gallery3, Coppermine + all their themes). Unfortunately Plogger does not support subdirectories, so I'd like to find all subdirectories with find and change the paths. How do I find directories with subdirectories with find? In the following directory only tip/d and tip/e. So find the directories at least 1 level deep.
Code:

images
images/test/*.jpg
images/te3/*.jpg
images/tok/*.jpg
images/tip/d/*.jpg
images/tip/e/*.jpg
images/test/d/*.jpg

PS: I choose Plogger, because other PHP gallery software is just very very ugly and I've tested and installed all options in the results for googling "php gallery". If you know php gallery software that looks decent, please let me know, but that does not include gallery3, coppermine, etc. including their specs.

jschiwal 06-11-2011 05:57 PM

Code:

find images/ -mindepth 2 -type d


All times are GMT -5. The time now is 09:02 AM.