I am wanting to search recursively through a directory and find all files that are not hidden files themselves and are not in a hidden dir. I tried using
find . -type f -not -name '.*' which excludes any base name hidden files, but it still recurses into hidden directories.
dir/ file.py .hidden_file .hidden_dir/ file.c
I would want the output to be:
however, I get:
I would like to list only files, i.e.,