Given the following directories structure:
$ tree --noreport dir dir ├── fileA ├── .hiddenfileA ├── .hiddendirA | ├── .hiddenfileB │ ├── fileC │ └── fileD └── dirA ├── .hiddenfileC ├── fileE └── fileF
The requirement is to make a call to find so that files from hidden directories but not hidden files (under not hidden directories) are excluded from the result.
The expected return should be something similar to:
./.hiddenfileA ./dirA/.hiddenfileC ./dirA/fileE ./dirA/fileF ./fileA
Did some research and found here information that led me to create the following call to
$ find . -type f -not -path '*/\.*' -print
But this solution has the drawback that skips hidden directories and files.