December 2018
Beginner
320 pages
8h 57m
English
The bash shell can match a pathname based on some meta-characters. This feature is known as file globbing. The pathname matching capability was historically called globbing (also known as pattern-matching or wildcard matching) for managing a large number of files. It expands the meta-characters used in filenames and pathnames.
When using file globbing for matching filenames or pathnames, the meta-characters are replaced by the list of matching pathnames prior to command execution. The following table lists the pattern and its corresponding result:
|
Pattern |
Result |
|
? |
Matches any single character |
|
* |
Matches any string of characters (0 or more) |
|
[set] |
Matches any character in the set; for example, [akl] will ... |
Read now
Unlock full access