Getting started with Globbing
Filename Generation, popularly known as Globbing (as in, Global substitution), is the ability of the shell to generate filenames from patterns. This is but the name for the process that allows the shell to read a pattern and generate a series of filenames; as a matter of fact, you might notice you have been using Globbing for quite a while in this book, the only difference is, we're now formally introducing the feature. Also, be aware that whenever we mention filenames in this text, it means both file and folder names, as you can use pretty much the same patterns to match both.
The really important thing you need to remember when dealing with Globbing is that filename substitution happens in the shell right before ...
Get Learning Shell Scripting with Zsh now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.