foo="Hello"
foo="${foo} World"
echo "${foo}"
> Hello World
VAR1="Hello,"
VAR2=" World"
VAR3="$VAR1$VAR2"
echo "$VAR3"
foo="Hello"
foo="${foo} World"
echo "${foo}"
> Hello World
Bash also supports a += operator as shown in this code:
A="X Y"
A+=" Z"
echo "$A"
output
X Y Z
Var_start=“https.//www.”
Var_end=“.com”
echo $Var_start$1$Var_end
Code Example |
---|
Shell :: Install MySQL FreeBSD |
Shell :: view certificate openssl |
Shell :: move linux |
Shell :: github desktop |
Shell :: gnome set wallpaper command line |
Shell :: make zip file command |
Shell :: chown a file |
Shell :: influxdb version |
Shell :: push imagesto docker |
Shell :: ffmpeg extract single frame |
Shell :: uninstall |
Shell :: ssh permissions are too open |
Shell :: force docker for a clean build of an image |
Shell :: delete a git branch |
Shell :: react bootstrap |
Shell :: debian 10 sources |
Shell :: poetry requirements |
Shell :: ubuntu gitlab |
Shell :: how to remove dual boot ubuntu from windows 10 |
Shell :: how to open terminal in vs code |
Shell :: pdf file 30mb |
Shell :: how to connect my ubuntu server to ssh |
Shell :: install docker on linux |
Shell :: how to kill recycling process linux |
Shell :: daily bing ubuntu |
Shell :: setting ssh for github |
Shell :: v4l2 not found |
Shell :: user friendly linux distro |
Shell :: amend git description |
Shell :: Unable to start terminal in ubuntu |