Quoting and special characters Flashcards
1
Q
””
A
Double quotation marks (quotes) denote strings but let shell constructs be evaluated, e.g. variables.
2
Q
’’
A
Singe quotation marks (quotes) denote strings literally.
3
Q
``
A
Grave accent, backquote or backtick cause their contents to be evaluated as a shell command, e.g.
$ echo My name is whoami
4
Q
Escape character
A
\
5
Q
Wildcard
A
- (limited to filenames)
6
Q
Comments
A
#
7
Q
Any character in a set
A
[aSetOfCharachters]
8
Q
Any of the capital letters
A
[A-Z]
9
Q
Any single character not in a set
A
[^set] or [!set]
10
Q
Any single character
A
?
11
Q
Brace expansion
A
e.g. echo sand{X,YY,ZZZ}wich