Timeline for How do I loop through only directories in bash?
Current License: CC BY-SA 3.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 22, 2013 at 5:28 | comment | added | rubo77 |
The dotglob option is interesting but dotglob only applies to the use of *. find . will always include hidden directories (and the current dir as well)
|
|
| Aug 14, 2013 at 16:11 | comment | added | Stéphane Chazelas |
Note that it doesn't include symlinks to directories. You can use shopt -s dotglob for bash to include hidden directories. Yours will also include .. Also note that -maxdepth is not a standard option (-prune is).
|
|
| Aug 14, 2013 at 15:46 | history | answered | rush | CC BY-SA 3.0 |