Introduction to the Unix Cluster. Node: WildChar

PREV Login UP Shells next

Wild-Card Characters

The shell also facilitates the ease in working with files through filename expansion---matching filenames with `wild-card' characters or `meta' characters:

Note that the shell does the expansion, not the program (unlike VMS). Thus, a command like cd foo* is perfectly O.K. as long as you have only one file beginning with `foo', but cp *.c *.c .bak probably won't do what you want. After performing the expansion, the shell locates the command you want using the current PATH (see Login) and runs it passing the blank-delimited command-line arguments as arguments to the program. Control returns to the shell when the program finishes running.

PREV Login UP Shells next