Answer Pimin Konstantin Kefalou prints folders with only two links and other files (d, f, ...).
The easiest way I've found is this:
for directory in $(find . -type d); do if [ -n "$(find $directory -maxdepth 1 -type f)" ]; then echo "$directory" fi done
If you have a name with spaces, use quotation marks in the $ directory.
You can replace. on your help folder.
I could not do this with a single find statement.
Sergi
source share