- Bash builtin command.
- Outputs arguments passed, separated by spaces, followed by a newline.
- The return status is always 0.
echo [-neE] [arg ...] Options: -n Do not print trailing newline -e Interpretation of the following backslash-escaped characters is enabled. -E Disables the interpretation of the following backslash escaped characters. \a Alert (bell) \b Backspace \c Suppress trailing newline \e An escape character \f Form feed \n New line \r Carriage return \t Horizontal tab \v Vertical tab \\ Backslash \0nnn The eight-bit character whose value is the octal value nnn (zero to three octal digits) \xHH The eight-bit character whose value is the hexadecimal value HH (one or two hex digits)
$ echo "fred" fred $ echo -n "fred" fred$ $ echo -e "fred\n\tbert\n\t\tsue" fred bert sue