# --------------------------------------------------------------------------------- #
# Para utilizar saltos de linea en la orden echo utilizar la opción "-e" y #
# todo el texto entre comillas dobles. El salto de linea se representa como "
" #
# --------------------------------------------------------------------------------- #
# To use line breaks in the echo command use the "-e" option and #
# enclose all text in double quotes. The line break is represented as "-e". #
# --------------------------------------------------------------------------------- #
##################################### EXAMPLE #######################################
echo -e "
testing line breaks with
the echo command
"
########### OUTPUT #########
| --------------------------------- |
| |
| testing line breaks with |
| the echo command |
| |
| --------------------------------- |
echo -e "hello
world"
echo -e "hello
world"
# Output
/*
* hello
* world
*/
-n Do not print the trailing newline character. This may also be achieved by appending `c' to the end of the string, as is done
by iBCS2 compatible systems. Note that this option as well as the effect of `c' are implementation-defined in IEEE Std
1003.1-2001 (``POSIX.1'') as amended by Cor. 1-2002. Applications aiming for maximum portability are strongly encouraged to
use printf(1) to suppress the newline character.