O'Reilly logo

Korn Shell: Unix and Linux Programming Manual, Third Edition, The by Anatole Olczak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required