From the course: Linux: Shells and Processes

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Pattern matching with extended globs

Pattern matching with extended globs - Linux Tutorial

From the course: Linux: Shells and Processes

Pattern matching with extended globs

- Standard globs handle the majority of common file matching needs. However, there are times when more pattern matching power is necessary. We might want to match more than one character at a time. We may want to group patterns and specify how many occurrences of a pattern or group to match. We might want to match this group or that group. We may even want to invert a group and match everything that is not listed in the pattern. For more powerful file globbing, bash includes extended globs. Extended globs have been part of the bash shell for more than 20 years. And yet many experienced Lennox admins are unaware of their power and are quite surprised when they see them used. As such, I have named this video, the magic of extended globs. One reason that extended globs may fly under the radar is that in some distributions, they need to be enabled manually before you can use them. Extended globs give you file globbing…

Contents