On Thu, May 06, 2021 at 02:37:17PM +0000, davidson wrote: > > $ shopt -s globstar > > $ ls /etc/**/.[^.]* > > It now occurs to me that this still omits files like /etc/.a and > /etc/..metadotfile
It doesn't omit .a . The * is allowed to match the empty string.
> Instead,
>
> $ ls /etc/**/.{.?,[^.]}*
>
> does what I intend, which is to display all dotfiles under /etc. Seems
> unduly complicated if you ask me, but it is what it is.
find /etc -type f -name '.*'

