Wildcards

The Perforce system allows the use of three wildcards:

Wildcard Meaning

*

Matches all characters except slashes within one directory.

...

Matches all files under the current working directory and all subdirectories. (matches anything, including slashes, and does so across subdirectories)

%%1 - %%9

Positional specifiers for substring rearrangement in filenames, when used in views.

For example:

Expression Matches

J*

Files in the current directory starting with J

*/help

All files called help in current subdirectories

./...

All files under the current directory and its subdirectories

./....c

All files under the current directory and its subdirectories, that end in .c

/usr/bruno/...

All files under /usr/bruno

//bruno_ws/...

All files in the workspace or depot that is named bruno_ws

//depot/...

All files in the depot

//...

All files in all depots