#!/bin/bash shopt -s dotglob # With this set, the glob matches hidden files (".*") by default, # but not the . or .. links. shopt -s globstar # If set, the pattern "**" used in a pathname expansion context will # match all files and zero or more directories and subdirectories. shopt -s extglob # Enable additional globs. Resulting in what is effectively a Regex # language builtin to Bash.