Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to print new line in shell script

echo -e 'This is First Line 
This is Second Line'
Comment

echo new line in a file bash

echo -e "Line 1
Line 2"
Comment

newline in echo unix

echo $'hello
world'
Comment

shell keep newline at output

# You want to say
echo "$lines"

# instead of
echo $lines

# $, $() and `` remove 
 	 ...
# By "string-ing" it, it keeps them.
Comment

PREVIOUS NEXT
Code Example
Shell :: uncommit local commit 
Shell :: generate signing key android 
Shell :: ssh server windows 11 
Shell :: git delete commit 
Shell :: create file in linux 
Shell :: bad interpreter: /bin/python3^M: no such file or directory 
Shell :: git remote add 
Shell :: windows cmd opens and closes 
Shell :: how to create a sh file to run terminal commands 
Shell :: bashrc sleep command 
Shell :: bash set var if not set 
Shell :: How to update newer git version on ubuntu 18.04 by using command line terminal. 
Shell :: github readme images 
Shell :: bash echo in variable 
Shell :: best source code editor 
Shell :: powershell copy file content to clipboard 
Shell :: oh my zsh git 
Shell :: shell script to find sum of n numbers using for loop 
Shell :: linus display ORACLE_HOME 
Shell :: ps see full command 
Shell :: wget username and password 
Shell :: install kubebuilder in macbook pro 
Shell :: android studio tortoise git 
Shell :: nvm change version 
Shell :: install watchman on linux 
Shell :: grep show lines between matches 
Shell :: git tag sort versions 
Shell :: install rtools rstudio 
Shell :: remove all gitlab runners command 
Shell :: bash execute command in variable 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =