Wildcards for Filename Generation

These wildcards may be used in command lines as a shortcut for a list of all filenames that match the wildcard pattern.

SEE ALSO

For more information, see page 292

* means zero or more of any character except slash (/) and leading period.

Contain a Pattern (*)

/? means exactly one of any character except slash (/) and leading period.

Positions (?)

[...] means exactly one of the alternatives listed except (/) and leading period.

[!...] means any one character except for the alternatives listed; cannot match a slash (/) or leading period.

Get Practical UNIX now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.