shopt-option
Bash dotglob
Allows ordinary filename patterns to include leading-dot names; special dot entries have separate rules.
Formal Syntax & Structure
bash syntaxbash
shopt -s dotglobReturn Value
shell behavior
Allows ordinary filename patterns to include leading-dot names; special dot entries have separate rules.
Working Example
Example Snippetbash
touch visible.txt .hidden.txtprintf '%s\n' *.txtshopt -s dotglobprintf '%s\n' *.txt