$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.

Examples

Exclude temporary files from filename expansion:
1
2
GLOBIGNORE='tmp_*'
ls *.sh
BashSupport Pro is a Bash IDE with support for $GLOBIGNOREtry it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal