Linux Commands - Loop Through Directories/Folders
Add another example using find exec.
@@ -5,3 +5,5 @@ find . -maxdepth 1 -mindepth 1 -type d -printf '%f\n'
find . -maxdepth 1 -mindepth 1 -type d | while read dir; do
echo "$dir"
done
+
+find . -maxdepth 1 -type d -exec echo {} \;
\ No newline at end of file
