echo Flashcards

1
Q

echo

A

Echo the STRING(s) to standard output.

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

echo $x

A

echo will print the variable x

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

echo -n

A

-n, Do not output the trailing newline.

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

echo

  • e
  • E
A
  • e, Enable interpretation of backslash escapes.
  • E, Disable interpretation of backslash escapes (default)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

echo -e

\

\a

\b

\c

\e

\f

A

\ backslash

\a alert (BEL)

\b backspace

\c produce no further output

\e escape

\f form feed

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

echo -e

\n

\r

\t

\v

\0NNN

\xHH

A

\n new line

\r carriage return

\t horizontal tab

\v vertical tab

\0NNN byte with octal value NNN (1 to 3 digits)

\xHH byte with hexadecimal value HH (1 to 2 digits)

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