First page Back Continue Last page Graphics
Screen Output: echo
Page 1066 in the textbook
A quick way to have a look at variables is to use echo with some useful escape sequences:
echo [-e][-n][-E] [argument ...]
- -n prevents a newline at the end of the echo
- -e permits the use of escape codes
- -E disables escape codes (default).
The full list of escape codes is in the textbook, but the most useful probably include
- \a alert
- \c no newline (used at end, same as -n)
- \n newline right here
- \t tab, for formatting output