Table of Contents

Pattern matching

Patterns specify filenames. This concept (sometimes called globing or wildcard matching) is used in virtually all command line shells (e.g. sh, ksh, bash or csh). See the related documentation for more information.

Wildcards

?matches any single character
*matches any string (zero or more characters)
[expr] matches a single character listed in the bracket expression. The expression may also contain:
  • ranges like 0-9 or a-f
and - depending on the library function support:
  • character classes like [:digit:] or [:lower:]
  • equivalence class expressions like [=a=]
  • collating symbols like [.a-acute.]
[!expr] matches a single character NOT matched by [expr]

Quoting

\ccharacter preceded by backslash loses its special meaning

Options

Following the concept of so-called hidden files, wildcards normally do not match a dot on the first position of a filename. This can be changed in the filter and pattern matching options panel.


Notes: