$GLOBIGNORE
–
Ignored Patterns for Filename Expansion
$GLOBIGNORE
is a colon-separated list of patterns. Each pattern defines filenames, which are ignored by filename
expansion. Files, which match one of the patterns, are removed from the list of expanded filenames.
Links
Examples
- Exclude temporary files from filename expansion:
1 2
GLOBIGNORE='tmp_*' ls *.sh
BashSupport Pro is a Bash IDE with support for $GLOBIGNORE – try it now!