Square
brackets are used to match a single character in a string to a list
of available characters. For instance the command
ls j[oae]n would find jan, jen, and jon but not joan (because
it has four characters). It is not necessary for the characters
inside the brackets to be in any particular order (e.g., [pch] is
the same as [chp]) and you can use alphabetic or numeric characters
for the search pattern.
Examples
This example will show
any files or directories that start with any of the characters
between b and f and have any number of characters after:
$
ls [b-f]*
blankets blankets_6 chuck chuck_1
|