Enable advanced glob patterns.
Section: set and shopt
Enable extended globbing
bash
bash
shopt -s extglob
printf '%s
' !(*.md)Explanation
Useful for richer filename matching.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing set and shopt
Inspect command resolution
Show whether a name resolves to an alias, builtin, function, or executable.