globstar

A bash 4 option that makes a double star in a glob match files at any depth of subdirectories.

In more detail

Turn it on with shopt -s globstar; then **/*.md matches Markdown files in every directory below. It is off by default and missing from bash 3.2 and POSIX sh, where find does the job instead.

Example

shopt -s globstar; ls **/*.md

Related terms

Taught in

References