->Title Page
->Intro
->Unix
-->Overview
-->File Structure
-->Online Manual
-->Basic Commands
-->Additional Commands
-->Login files
-->Special characters
--->Wildcards
--->Redirection
--->Pipes
->Quote characters
--->Others
-->Miscellaneous Tips
-->Things to try
->Vi editor
->Mirror sites
->Further reading

[ Up ]
[Prev][Home][Next]
[Author]

Unix ---> Quote characters

Sometimes it is necessary to place wildcards in the command line without having the shell treat them as special characters. This can be done by either preceding a single wildcard character with a backslash, \, or enclosing a sequence of wildcard characters in apostrophes, ' '.

For example, if you wanted to set your C shell prompt to a question mark and typed


    set prompt=?
the question mark would be expanded to be the first single-character filename in the working directory. If one exists it will be your prompt. If no single-character filenames exist, you will get a "set: No match" error. You should have typed


    set prompt=\?

Site Statistics

Find this site useful? Want to give something back?

t a y l o r@l i n u x a v e.n e t

© 1993-2000 Christopher C. Taylor