Quoting and special characters Flashcards

1
Q

””

A

Double quotation marks (quotes) denote strings but let shell constructs be evaluated, e.g. variables.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

’’

A

Singe quotation marks (quotes) denote strings literally.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Escape character

A

\

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Wildcard

A
  • (limited to filenames)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Comments

A

#

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Any character in a set

A

[aSetOfCharachters]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Any of the capital letters

A

[A-Z]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Any single character not in a set

A

[^set] or [!set]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Any single character

A

?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Brace expansion

A

e.g. echo sand{X,YY,ZZZ}wich

How well did you know this?
1
Not at all
2
3
4
5
Perfectly