UNIX Wildcards

There are several special characters that can be used to match multiple files at the same time:

?   Matches any one character in a filename.

*   Matches any character or characters in a filename.

[ ]  Matches one of the characters included inside the [ ] symbols.

For example, suppose that the current directory contains the files

date out1 out2 out3 prog.f prog.o

Some examples of file names and files that would be matched are:

Filename      Files matched

out?          out1 out2 out3
prog.[fo]     prog.f prog.o
*             date out1 out2 out3 prog.f prog.o
*.f           prog.f
out*          out1 out2 out3