Quote:
Originally Posted by crts
the single quotes and the backslash are used to protect the braces and the semicolon from shell expansion. See the man and info pages for more info on this.
|
More specifically the braces and semicolon are shell metacharacters as listed
here. The special meaning of a metacharacter is removed when it is "escaped" (by putting a "\" in front of it) or enclosed in single quotes.
The ";" is used to separate lists of commands as explained
here. In practice it is not much used because a line end does equally well.
The "{ }" is used to group commands as explained
here. When it is empty -- as used in find commands -- it does not need to be escaped or quoted.