Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

echo

# --------------------------------------------------------------------------------- #
# 	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		   			|
|						   			|
| --------------------------------- |
Comment

echo new line

echo -e "hello
world"
Comment

echo new line

echo -e "hello
world"
# Output
  /*
   * hello
   * world
   */
Comment

echo "-n"

-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.
Comment

PREVIOUS NEXT
Code Example
Shell :: stop nginx server 
Shell :: git reset remote 
Shell :: bash echo multiline 
Shell :: export docker container 
Shell :: Cannot install in Homebrew on ARM processor in Intel default prefix 
Shell :: how to install brew on mac 
Shell :: how to print substring in bash script 
Shell :: Pterodactyl wings update 
Shell :: grafana docker 
Shell :: install brave browser 
Shell :: how to check if mongodb is installed 
Shell :: install pip linux 
Shell :: how to create bootable usb on manjaro 
Shell :: add extra cygwin packages 
Shell :: ffmpeg join ts files to mp4 
Shell :: how to change permissions for only the root 
Shell :: directory structure 
Shell :: refresh prometheus configuration 
Shell :: install chocolatey 
Shell :: revert commit git 
Shell :: undo a git merge 
Shell :: uninstall nvidia driver ubuntu 
Shell :: how to start mongodb server in ubuntu 
Shell :: are github and git same thing 
Shell :: View network transfer RX / TX (Linux) 
Shell :: ssh-copy powershell 
Shell :: curl test https 
Shell :: crontab save 
Shell :: homebrew redis install 
Shell :: git push functions code 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =