From the course: CompTIA Linux+ (XK0-005) Cert Prep

Unlock the full course today

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

File globbing

File globbing

- [Instructor] There are various types of pattern matching that can be done in bash. There are globs, extended globs, brace expansion, and two types of regular expressions, basic and extended. The first type of pattern matching we'll talk about is file globbing. Originally in Bell Labs Unix, there was a command called glob that expanded wildcard characters into a list of unrooted arguments. Globbing is now a function built into the shell. This is important to note as different shells may handle globs differently. There are also bash shell options that affect how globs work. We'll talk more about these in later videos. Since this course is about bash pattern matching, we'll focus on bash globs. In this sense, globs are a set of bash features that match or expand certain types of patterns. Globs can look and act like regular expressions but are less expressive and are easier to use. They're also easier for the system to…

Contents