Filename Substitution

File name substitution is a feature which allows special characters and patterns to substituted with file names in the current directory, or arguments to the case and [[...]] commands.

Pattern-Matching Characters/Patterns

? match any single character
* match zero or more characters, including null
[abc] match any characters between the brackets
[x–z] match any characters in the range x to z
[a–ce–g] match any characters in the range a to c, e to g
[!abc] match any characters not between the brackets
[!x–z] match any characters not in the range x to z
. strings starting with '.' must be explicitly matched
?(pattern-list) match zero or one occurrence of any pattern
*(pattern-list) match zero or more occurrences of any pattern
+(pattern-list) match one or more occurrence of any pattern
@(pattern-list) match exactly one occurrence of any pattern
!(pattern-list) match anything except any pattern
pattern-list multiple patterns must be separated with a '|' character

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.144.59