shopt -s globstar

Category: Shell & Bash

shopt -s globstar

Enable ** glob to match files in all subdirectories

Enables the ** glob pattern, which matches files in all subdirectories. So **/*.py matches every Python file anywhere in the tree.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.