File name substitution in the C shell
The C Shell permits you to do file name substitutions.
The C shell provides several shortcuts to save
time and keystrokes. If a word contains any of the characters *
, ?
, [
]
, or { }
, or begins with a tilde (~
),
that word is a candidate for file name substitution. The C shell regards
the word as a pattern and replaces the word with an alphabetized list
of file names matching the pattern.
The current collating sequence is used, as
specified by the LC_COLLATE or LANG environment
variables. In a list of words specifying file name substitution, an
error results if no patterns match an existing file name. However,
it is not required that every pattern match. Only the character-matching
symbols *
, ?
, and [ ]
indicate
pattern-matching or file name expansion. The tilde (~
)
and { }
characters indicate file name abbreviation.