I\'m trying to use GNU find to find only the directories that contain no other directories, but may or may not contain regular files.
My best guess so far has been:
What about this one ? It's portable and it doesn't depend on finnicky linking counts. Note however that it's important to put root/folder without the trailing /.
root/folder
find root/folder -type d | awk '{ if (length($0)