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 :: install nhost 
Shell :: how to setup raspi-config on ubuntu server running on raspberry pi 
Shell :: how to stop brute force attack aws ec2 
Shell :: conda install packages from different channels 
Shell :: download m3u8 ts files as mp4 
Shell :: keep services up no matter what 
Shell :: is needed to run `file_system` for your system 
Shell :: Package `pywhatkit` not found 
Shell :: powershell change windows policy 
Shell :: Install Kubernetes Operator SDK 
Shell :: check folder exist else create linux 
Shell :: shell script call another script with parameters 
Shell :: how to install .net on pop os 
Shell :: ssh keep connection 
Shell :: how to stash git yarn.lock 
Shell :: syntax for ls 
Shell :: git create rempote branch 
Shell :: pipeline structural bioinformatics 
Shell :: grep check line exists in file 
Shell :: bash read -r option 
Shell :: chemin absolu tcpdf sur serveur 
Shell :: git config --global user.email "you@example.com" 
Shell :: create desktop icon for a zip installed program 
Shell :: hide active app from dock 
Shell :: tail vs head 
Shell :: run anydesk from terminal ubuntu 
Shell :: windoes debloat 
Shell :: change date and time in kali linux 2021 
Shell :: install kubectl on ubuntu 20 
Shell :: grep Matching options 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =