University of Southern California

ITS Information Technology Services

A division of the Office of the Chief Information Officer

Wildcards

You can use wildcards to substitute all or part of a filename. This is useful if you want to manipulate a large number of files but you don't want to specify each file name.

You can use the * symbol to represent zero or more characters. Some examples:

You can use the ? symbol to represent any single character. Some examples:

You can match any single character a list or range by enclosing them in []. Some examples:

You can match a string by enclosing them in {}. Some examples:

You can also combine wildcards. Some examples:

Last updated:
October 16, 2008

UNIX Documentation

The use of all USC computing resources is governed by the USC Computing Policies.