shopt-option
Bash globstar
Enables recursive double-star filename matching, including zero directory levels.
Formal Syntax & Structure
bash syntaxbash
shopt -s globstarReturn Value
shell behavior
Enables recursive double-star filename matching, including zero directory levels.
Working Example
Example Snippetbash
mkdir subtouch root.txt sub/child.txtshopt -s globstarprintf '%s\n' **/*.txt