![]() |
James Thornton |
| Internet Business Consultant |
| Home | Blog | Bio | Projects | Contact | Latest Blog (new site): How to Get to Genius |
|---|
|
19.2. GlobbingBash itself cannot recognize Regular Expressions. In scripts, commands and utilities, such as sed and awk, interpret RE's. Bash does carry out filename expansion, a process known as "globbing," but this does not use the standard RE set. Instead, globbing recognizes and expands wildcards. Globbing interprets the standard wildcard characters, * and ?, character lists in square brackets, and certain other special characters (such as ^ for negating the sense of a match). There are some important limitations on wildcard characters in globbing, however. Strings containing * will not match filenames that start with a dot, as, for example, .bashrc. [1] Likewise, the ? has a different meaning in globbing than as part of an RE.
Bash performs filename expansion on unquoted command-line arguments. The echo command demonstrates this.
See also Example 10-4. Notes
|
|
James Thornton, jamesthornton.com>Services: Search Engine Optimization Consultants |
Electric Speed: Internet And Marketing |