regex exclude hidden files code example Example 1: find exclude hidden files find . -not -path '*/\.*' Example 2: find ignore hidden files find . -not -path '*/\.*'