The material in this section is adapted from the Bash Reference Manual (http://www.gnu.org/software/bash/manual/bashref.html; see Pattern-Matching Characters).
The following POSIX character classes may be
used within [], e.g., [[:alnum:]]
;
consult the grep or egrep
manpage on your system for more details.
[[:alnum:]] [[:alpha:]] [[:ascii:]] [[:blank:]] [[:cntrl:]] [[:digit:]] [[:graph:]] [[:lower:]] [[:print:]] [[:punct:]] [[:space:]] [[:upper:]] [[:word:]] [[:xdigit:]]
The word
character class matches
letters, digits, and the character _.
[=c=]
matches all characters with
the same collation weight (as defined by the current locale) as the
character c
, while
[.symbol.]
matches the collating symbol
symbol
.
These character classes are affected by the locale setting. To get
the traditional Unix values, use LC_COLLATE=C
or LC_ALL=C
.
3.133.109.30