Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

linux linebreaks script bash

If the statement would be correct without continuation, you need to use . Therefore, the following works without a backslash, as you can't end a command with a &&:

echo 1 &&
echo 2
Here, you need the backslash:

echo 1 2 3 
4
or

echo 1 
&& echo 2
Otherwise, bash would execute the command right after processing the first line without waiting for the next one.
Comment

break line bash

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

PREVIOUS NEXT
Code Example
Shell :: linux temp file 
Shell :: echo export path 
Shell :: best audio visualiser for linux 
Shell :: how to install limma in r 
Shell :: npm install directly fron github 
Shell :: undo local commit 
Shell :: nuxt install 
Shell :: reset to origin 
Shell :: wlan code cmd 
Shell :: delete github credentials in windows 
Shell :: pip command to install yaml 5.1.2 
Shell :: Fetch all braches in git 
Shell :: uptime kuma docker compose 
Shell :: stop supervisor service centos 8 
Shell :: undo airmon-ng check kill 
Shell :: ubuntu taskbar not showing incons for current applications 
Shell :: list packages linux windows 
Shell :: install plasma arch 
Shell :: install psycopg2 
Shell :: HOW TO REPLACE A CHARACTER FROM A STRING IN BASH 
Shell :: git cheatsheet 
Shell :: download the Laravel installer using Compose 
Shell :: prolog how to run 
Shell :: how to install free download manager on linux 
Shell :: ionic capacitor v3 add android 
Shell :: bash check if file empty 
Shell :: find and kill the process on a specific port windows 
Shell :: rc.local not running 
Shell :: git get repo with composer 
Shell :: github remote push 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =