Snippet
Instead of being asleep at 12:45 on 1 September 2019, kitt created this:
Limit the depth of find for checking only some subdirectories instead of all of them by using -maxdepth.
You can also use -mindepth to sandwich directory levels.
# same as finding all files one level down, similar to "ls ./??*"find . -maxdepth1-type f
# find all sub-subdirectories in the current directoryfind . -maxdepth2-mindepth2-type d