echo Flashcards
1
Q
echo
A
Echo the STRING(s) to standard output.
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)