I want to carry out some action (say chown) on all the hidden files in a directory.
I know that this .* is not a good idea because it will also find the current . and parent .. directories (I know that rm will fail to operate on . and .. but other commands, including chown and chmod, will happily take effect)
But all my hidden files have different names!
How should I glob for all hidden files while excluding . and .. ?
.bashrcto make it permanent if one so wishes (I know I almost never want*to mean "non-dotfiles only"). – jcgoble3 Sep 27 '21 at 04:30