pavement

Escape

From FreeBSDwiki
Revision as of 07:27, 28 January 2005 by 20.133.0.12 (Talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The escape character (\) is used to "escape" special characters.

Special characters are those which have a reserved meaning on UNIX like OSs.

An example is the space character. if you want access a file that has a name with a space in it you need to escape this character, to ensure that it is not treated as a seperator between file names, or between switches.

For example if you typed

emacs my file.txt

emacs would try to open the files "my" and "file.txt".

but if you escaped the space character

emacs my\ file.txt

then emacs would try to open the file "my file.txt".

Personal tools