March 2002
Beginner
504 pages
10h 47m
English
Now that you know the basics about quoting, let's look at some additional rules that will help you use quoting effectively.
In English, you are used to quoting whole words or sentences. In shell programming, the special characters must be quoted, but it does not matter whether the regular characters are quoted in the same word, as follows:
$ echo "Hello; world" Hello; world
You can move the quotes off word boundaries as long as any special characters remain quoted. This command produces the same output as the preceding one:
$ echo Hel"lo; w"orld
Of course, it is easier to read the line if the quotes are on word boundaries. This simple example illustrates the manner in which quoting ...
Read now
Unlock full access