echo Flashcards
1
Q
echo
A
Echo the STRING(s) to standard output.
![](https://s3.amazonaws.com/brainscape-prod/system/cm/313/238/230/a_image_thumb.png?1591276263)
2
Q
echo $x
A
echo will print the variable x
3
Q
echo -n
A
-n, Do not output the trailing newline.
4
Q
echo
- e
- E
A
- e, Enable interpretation of backslash escapes.
- E, Disable interpretation of backslash escapes (default)
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
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)