September 2018
Beginner
186 pages
4h 30m
English
Creative use of globbing syntax can do a great deal of advanced pattern matching, but in some cases we may need something more advanced, perhaps approaching regular expressions in terms of complexity. Bash's extglob feature allows us to do this. With this shopt option enabled, we can use some additional glob forms:
For example, /var/log/!(*.gz) matches all files in /var/log that don't end in .gz.
Some of these are useful only when using multiple patterns ...
Read now
Unlock full access