Wildcarding allows you to specify groups of files. You can
use wildcards as an argument to
rm, as well as to UNIX
|Wildcard||What it Represents|
|*||any glob of zero or more characters|
|[crmf]||any of c, m, r or f. You can put any list of caracters in the brackets to create a wildcard.|
|[a-z]||any charcter falling asciicograpically from a to z. You can put any range of characters you wish in here and you can have more than one range.|
Here are some useful examples and what they do.
ls *.htmlList all HTML files in your cwd
ls */index.htmlList any file namead
index.htmlin any immediate subdirectory of your cwd
grep -l cos *.cList all
.cfiles that contain the string "cos" in your current working directory.
cat *f* |grep -i washingtonPut all lines from files containing the letter f in your cwd that contain the word "washington" case-insensitive to