<tt>[</tt>,<tt>]</tt>: List of Characters



next up previous contents
Next: : Any Single Up: Metacharacters (Wildcards) Previous: : Any Character(s)

[,]: List of Characters

To express a list of characters, or numbers, [ and ] are used. The comma is used as a separator between the characters. If an hyphen is used, a range of characters is represented.

For example, all files ending with 1, 2, 3, 5, 6, 7, and 9 could be represented as

[1-3,5-7,9]
or all files ending with an upper case letter:
[A-Z]



Super-User
Fri Feb 17 15:55:40 EST 1995