Examples of wildcard characters


CharacterDescriptionExample
cmatches character c (c != '\', '-', ']')"wh finds wh, but not what or while
*matches any sequence of non-Separator characterswh* finds what, white, and why, but not awhile or watch
?matches any single non-Separator characterb?ll finds ball, bell, bill
[]matches characters within the brackets.b[ae] finds ball, bell, but not bill
''cmatches character c? finds ?. but not a?
lo '-' himatches character c for lo <= c <= hib[a-c]d finds bad, bbd, and bcd