| Symbol
used to replace or represent one or more characters. Wildcards
or wild characters are
commonly either an asterisk (*) or question mark (?). Below are some
examples of how a wildcard may be used:
Listing files in a Linux variant or
Unix variant that begin with comp:
ls comp*
Deleting files in MS-DOS that begin with comp and end with a .txt
extension:
del comp*.txt
Listing files in MS-DOS that contain c, mp and any other character
in-between:
dir c?mp
Deleting files in a Linux or Unix variant that contain c, mp and
any character in-between:
rm c?mp
Searching for a file that has comp anywhere in the file name in
Microsoft Windows 95 and above:
Click Start / Find or Search
Click for files or folders
In the files or folders named text box, type "*comp*"
Specify the location to search for the file and click Find or Search
now.
Also see: Asterisk, Glob,
Meta-character
|