Bash:PatternMatching
lastmod 2020-10-06created 2020-10-062 edits
Glob pattern matching (Pattern Matching) in Bash
Hot to use
In addition to the fairly well-known simple wildcard characters, bash supports extended globbing, which adds extra features. These extended features are enabled through the extglob option.
List of Pattern Matching
| Pattern | Description |
| | Match zero or more characters |
| | Match any single character |
| | Match any of the characters in a set |
| | Match zero or one occurrences of the patterns (extglob) |
| | Match zero or more occurrences of the patterns (extglob) |
| | Match one or more occurrences of the patterns (extglob) |
| | Match one occurrence of the patterns (extglob) |
| | Match anything that doesn't match one of the patterns (extglob) |