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 - 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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
About Linux shells6m 21s
-
About Linux terminals1m 50s
-
(Locked)
Shell pathname tricks7m 7s
-
(Locked)
Shell history tricks3m 29s
-
(Locked)
Configure shell history6m 59s
-
(Locked)
Variables and shell environment5m 33s
-
(Locked)
Make shell variables persistent6m 48s
-
(Locked)
Pattern matching with globs5m 9s
-
(Locked)
Globs exercise6m 42s
-
(Locked)
Pattern matching with extended globs6m 25s
-
(Locked)
Extended glob exercise4m 22s
-
-
-
-
-