> For the complete documentation index, see [llms.txt](https://til.devjugal.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://til.devjugal.com/linux/bash/concatenate-strings.md).

# Concatenate Strings

## Option 1

```bash
VAR1="Hello"
VAR2="World"
VAR3="${VAR1}, ${VAR2}"
echo "${VAR3}"
```

## Option 2

We can also use **+=** operator to concatenate strings

```bash
VAR1="Hello, "
VAR2="World!"
VAR1+="${VAR1}"
echo "${VAR1}"
```

***Source:*** [***Linuxize***](https://linuxize.com/post/bash-concatenate-strings/)
