5.5. MetacharactersSome characters are processed specially by the shell, and are known as metacharacters. All shells share a core set of common metacharacters, whose meanings are given in Figure 5-5.
When you enter a command, the shell scans it for metacharacters and processes them specially. When all metacharacters have been processed, the command is finally executed. To turn off the special meaning of a metacharacter, precede it by a \ character. Here's an example: $ echo hi > file ...store output of echo in "file". $ cat file ...look at the contents of "file". hi $ echo hi \> file ...inhibit > metacharacter. hi > file ...> is treated like other characters. $ _ ...and output comes to terminal instead This chapter describes the meaning of each metacharacter in the order listed in Figure 5-5. |