{"id":67132,"date":"2022-10-27T08:48:09","date_gmt":"2022-10-27T08:48:09","guid":{"rendered":"\/tutorials\/?p=67132"},"modified":"2025-12-22T12:43:18","modified_gmt":"2025-12-22T12:43:18","slug":"bash-concatenate-strings","status":"publish","type":"post","link":"\/tutorials\/bash-concatenate-strings","title":{"rendered":"How to concatenate strings in bash: A guide for connecting string variables"},"content":{"rendered":"<p>The majority of programming languages can connect two or more strings. One programming language that makes it effortless to concatenate variables is <strong>bash<\/strong>.<\/p><p>What makes bash special is that string variables can be connected without the use of dedicated commands or functions. In other words, to combine string data, users can use simple variable manipulation or apply the same logic with the <strong>addition assignment operator (+=)<\/strong>.<\/p><p>In this tutorial, we will explain bash scripting, go over what bash concatenate strings are, and provide a variety of ways to concatenate strings.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/Linux-Commands-Cheat-Sheet.pdf\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" width=\"2048\" height=\"566\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/11\/Linux-cheat-sheet.png\/public\" alt=\"\" class=\"wp-image-69262\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/11\/Linux-cheat-sheet.png\/w=2048,fit=scale-down 2048w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/11\/Linux-cheat-sheet.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/11\/Linux-cheat-sheet.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/11\/Linux-cheat-sheet.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/11\/Linux-cheat-sheet.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/a><\/figure><\/div><p>\n\n\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-what-is-bash-scripting\">What Is Bash Scripting?<\/h2><p>Bash shell scripting allows users to execute hundreds of <a href=\"\/tutorials\/linux-commands\">Linux commands<\/a> with a single script instead of writing them all down one by one. It is extra helpful for users looking to automate operations on their physical server or <a href=\"\/vps-hosting\">VPS hosting<\/a> environment, enhancing productivity.<\/p><p>For example, any command a user can run natively on a terminal can be put into a bash script. This also applies to functions, so instead of writing them down every time, users only need to write a function once and reuse it in any bash scripts.<\/p><p>Any script starts with a <a href=\"\/tutorials\/how-to-run-sh-file-in-linux\"><strong>.sh<\/strong> file<\/a> and contains a similar structure:<\/p><pre class=\"wp-block-preformatted\">#!\/bin\/bash\n# Creates a new variable \"Hello, World\"\nmybashvariable=\"Hello, World\"\necho $mybashvariable<\/pre><p>The first line tells the terminal to run the script using bash exclusively, and all the following lines are the actual script itself.<\/p><p>In this particular example, the script created a new variable named <strong>mybashvariable<\/strong> and gave it a &ldquo;<strong>Hello, World<\/strong>&rdquo; value, and the script will print the value out.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-script-to-join-two-strings.png\"><img decoding=\"async\" width=\"580\" height=\"110\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-script-to-join-two-strings.png\/public\" alt=\"Bash script to join two strings\" class=\"wp-image-67134\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-script-to-join-two-strings.png\/w=580,fit=scale-down 580w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-script-to-join-two-strings.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-script-to-join-two-strings.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 580px) 100vw, 580px\" \/><\/a><\/figure><\/div><p>\n\n<div class=\"protip\">\n                    <h2 class=\"featured-snippet title\">What Is Concatenation in Linux?<\/h2>\n                    <p> Concatenation operation in bash is the process of attaching a string to the end of another string. Bash allows its users to concatenate strings by writing strings one after the other or joining them using the += operator. <\/p>\n                <\/div>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-string-concatenation-adding-one-string-variable-after-the-other\">String Concatenation &ndash; Adding One String Variable After the Other<\/h2><p>The simplest string concatenation method is adding one string variable after the other. The following sections will show three different ways to do just that.<\/p><h3 class=\"wp-block-heading\" id=\"h-string-concatenation-using-literal-strings\">String Concatenation Using Literal Strings<\/h3><p>Literal strings are printed literally, and there are two ways to print out a string literal &ndash; using singular quotes or a backlash symbol with regular double quotes. For example, we will create a new literal string variable without quotes and echo it:<\/p><pre class=\"wp-block-preformatted\">#!\/bin\/bash\nvariablename=\\usr\\bin\\env\necho \"$variablename\"<\/pre><p>In this case, the result would be:<\/p><pre class=\"wp-block-preformatted\"># Result\nusrbinenv<\/pre><p>Now, when we add <strong>singular<\/strong> or <strong>double quotes<\/strong> to the string variable name, the echo command will print the value literally:<\/p><pre class=\"wp-block-preformatted\">#!\/bin\/bash\nvariablename='\\usr\\bin\\env'\necho \"$variablename\"<\/pre><p>Here&rsquo;s the result:<\/p><pre class=\"wp-block-preformatted\"># Result\n\\usr\\bin\\env<\/pre><p>Next, we will apply this logic to concatenate two strings:<\/p><pre class=\"wp-block-preformatted\">#!\/bin\/bash\nvariablename='\\usr\\bin\\env'\necho \"$variablename Bash_Is_Awesome\"<\/pre><p>We can also cover the last line&rsquo;s variable using <strong>rounded brackets<\/strong> in order to guard it. Curly brackets are helpful if you got a variety of variables:<\/p><pre class=\"wp-block-preformatted\">echo \"${variablename} Bash_Is_Awesome\"<\/pre><p>In both cases, the result will be shown as:<\/p><pre class=\"wp-block-preformatted\">\\usr\\bin\\env Bash_Is_Awesome<\/pre><h3 class=\"wp-block-heading\" id=\"h-string-concatenation-of-multiple-variables\">String Concatenation of Multiple Variables<\/h3><p>Multiple string variables can be easily joined together with clear-cut variable manipulation.<\/p><p>For example, in the following bash script, we will use three different variables to create combined values. The echo command will subsequently print out the string data:<\/p><pre class=\"wp-block-preformatted\">#!\/bin\/bash\nvariablename='\\usr\\bin\\env '\nmyvariable='_Awesome'\nanothervariable=\"$variablename\"Bash_Is\"$myvariable\"\necho \"$anothervariable\"<\/pre><p>Here&rsquo;s what the result will look like:<\/p><pre class=\"wp-block-preformatted\">\\usr\\bin\\env Bash_Is_Awesome<\/pre><h3 class=\"wp-block-heading\" id=\"h-string-concatenation-of-numbers-and-strings\">String Concatenation of Numbers and Strings<\/h3><p>Bash allows its users to concatenate one or more variables that are not string-type. For this reason, it is possible to concatenate multiple variables, which can be strings or numbers:<\/p><pre class=\"wp-block-preformatted\">#!\/bin\/bash\nfirstvariable=\" Hello, World \"\nsecondvariable=\"Hello, Hostinger \"\nthirdvariable=\" I now know how to concatenate strings in bash.\"\nfourthvariable=\"$secondvariable\"and\"$firstvariable\"means\"$thirdvariable\"\necho $fourthvariable<\/pre><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-string-concatenation-of-numbers-and-strings.png\"><img decoding=\"async\" width=\"1024\" height=\"92\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-string-concatenation-of-numbers-and-strings.png\/public\" alt=\"Bash string concatenation of numbers and strings\" class=\"wp-image-67140\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-string-concatenation-of-numbers-and-strings.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-string-concatenation-of-numbers-and-strings.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-string-concatenation-of-numbers-and-strings.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-string-concatenation-of-numbers-and-strings.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><h2 class=\"wp-block-heading\" id=\"h-string-concatenation-using-the-operator\">String Concatenation Using the += Operator<\/h2><p>Another way to join two or more strings to make a concatenated string is to use the addition assignment operator (+=). This operator makes it possible to connect strings using one or more variables.<\/p><p>For example, the following script can be used to join two strings with the use of a single variable:<\/p><pre class=\"wp-block-preformatted\">#!\/bin\/bash\nmystring=\"I would like to generate a meaningful output, please. \"\nmystring+=\"Not a chance, friend!\"\necho \"$mystring\"<\/pre><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/10\/Connecting-both-strings-without-any-built-in-function-or-command-in-bash.-Combined-values-are-achieved-using-the-append-operator.png\"><img decoding=\"async\" width=\"1024\" height=\"105\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Connecting-both-strings-without-any-built-in-function-or-command-in-bash.-Combined-values-are-achieved-using-the-append-operator.png\/public\" alt=\"Connecting both strings without any built-in function or command in bash. Combined values are achieved using the append += operator\" class=\"wp-image-67142\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Connecting-both-strings-without-any-built-in-function-or-command-in-bash.-Combined-values-are-achieved-using-the-append-operator.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Connecting-both-strings-without-any-built-in-function-or-command-in-bash.-Combined-values-are-achieved-using-the-append-operator.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Connecting-both-strings-without-any-built-in-function-or-command-in-bash.-Combined-values-are-achieved-using-the-append-operator.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Connecting-both-strings-without-any-built-in-function-or-command-in-bash.-Combined-values-are-achieved-using-the-append-operator.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>A similar result can be achieved using two variables:<\/p><pre class=\"wp-block-preformatted\">#!\/bin\/bash\nfirststring=\"This is a single string. \"\nsecondstring=\"Which makes this a resulting string.\"\n# Curly brackets between $secondvariable are called variable interpolation.\nfirststring+=\"${secondstring}\"\necho $firststring<\/pre><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-append-string-operator-use-case-example.-Two-strings-are-taken-and-concatenated-string-is-made-with-the-help-of-the-append-operator.png\"><img decoding=\"async\" width=\"880\" height=\"110\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-append-string-operator-use-case-example.-Two-strings-are-taken-and-concatenated-string-is-made-with-the-help-of-the-append-operator.png\/public\" alt=\"Bash append string operator use-case example. Two strings are taken and concatenated string is made with the help of the append operator\" class=\"wp-image-67144\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-append-string-operator-use-case-example.-Two-strings-are-taken-and-concatenated-string-is-made-with-the-help-of-the-append-operator.png\/w=880,fit=scale-down 880w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-append-string-operator-use-case-example.-Two-strings-are-taken-and-concatenated-string-is-made-with-the-help-of-the-append-operator.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-append-string-operator-use-case-example.-Two-strings-are-taken-and-concatenated-string-is-made-with-the-help-of-the-append-operator.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-append-string-operator-use-case-example.-Two-strings-are-taken-and-concatenated-string-is-made-with-the-help-of-the-append-operator.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 880px) 100vw, 880px\" \/><\/a><\/figure><\/div><h3 class=\"wp-block-heading\" id=\"h-concatenating-numeric-strings\">Concatenating Numeric Strings<\/h3><p>The append operator method can also be used exclusively to append numeric string variables.<\/p><pre class=\"wp-block-preformatted\">#!\/bin\/bash\nnumeric_string=2050\nnumeric_string+=0502\necho $numeric_string<\/pre><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-script-to-join-numeric-string-variables.-Plus-and-equal-sign-correspond-to-append-operator.png\"><img decoding=\"async\" width=\"640\" height=\"110\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-script-to-join-numeric-string-variables.-Plus-and-equal-sign-correspond-to-append-operator.png\/public\" alt=\"Bash script to join numeric string variables. Plus and equal sign correspond to append operator\" class=\"wp-image-67145\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-script-to-join-numeric-string-variables.-Plus-and-equal-sign-correspond-to-append-operator.png\/w=640,fit=scale-down 640w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-script-to-join-numeric-string-variables.-Plus-and-equal-sign-correspond-to-append-operator.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-script-to-join-numeric-string-variables.-Plus-and-equal-sign-correspond-to-append-operator.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/figure><\/div><p>However, if you would like to add the numbers together, this logic needs to be used:<\/p><pre class=\"wp-block-preformatted\">#!\/bin\/bash\nx=3\ny=5\nz=6\n((x+=y+=z))\necho $x<\/pre><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-script-to-add-three-numbers-together.png\"><img decoding=\"async\" width=\"640\" height=\"110\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-script-to-add-three-numbers-together.png\/public\" alt=\"Bash script to add three numbers together\" class=\"wp-image-67147\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-script-to-add-three-numbers-together.png\/w=640,fit=scale-down 640w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-script-to-add-three-numbers-together.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-script-to-add-three-numbers-together.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/figure><\/div><h3 class=\"wp-block-heading\" id=\"h-concatenating-strings-using-bash-for-loop\">Concatenating Strings Using Bash for Loop<\/h3><p>A more advanced way of using the bash concatenate functionality is implementing it into the <a href=\"\/tutorials\/bash-for-loop-guide-and-examples\/\">bash for loop<\/a>.<\/p><p>In the following example, we got a <strong>myvariable<\/strong> with three strings and a variable named <strong>results<\/strong> with an empty string. With the help of the <strong>bash for<\/strong> <strong>loop<\/strong>, we will be able to combine strings from <strong>myvariable<\/strong> with our string:<\/p><pre class=\"wp-block-preformatted\">#!\/bin\/bash\nmyvariable=\"bash concatenation Hostinger\"\nresults=\"\"\nfor i in $myvariable\ndo\nresults+=\"The answer is $i... \"\ndone\necho $results<\/pre><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-for-loop-example-in-a-bash-script.-It-is-used-to-join-three-strings-with-the-preferred-string.-Echo-command-prints-out-the-combined-result.png\"><img decoding=\"async\" width=\"1024\" height=\"99\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-for-loop-example-in-a-bash-script.-It-is-used-to-join-three-strings-with-the-preferred-string.-Echo-command-prints-out-the-combined-result.png\/public\" alt=\"Bash for loop example in a bash script. It is used to join three strings with the preferred string. Echo command prints out the combined result\" class=\"wp-image-67148\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-for-loop-example-in-a-bash-script.-It-is-used-to-join-three-strings-with-the-preferred-string.-Echo-command-prints-out-the-combined-result.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-for-loop-example-in-a-bash-script.-It-is-used-to-join-three-strings-with-the-preferred-string.-Echo-command-prints-out-the-combined-result.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-for-loop-example-in-a-bash-script.-It-is-used-to-join-three-strings-with-the-preferred-string.-Echo-command-prints-out-the-combined-result.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/10\/Bash-for-loop-example-in-a-bash-script.-It-is-used-to-join-three-strings-with-the-preferred-string.-Echo-command-prints-out-the-combined-result.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>The bash programming language is a convenient and efficient tool for various variable manipulation actions. One of the most important examples is the ability to join different string variables into one.<\/p><p>In this tutorial, we&rsquo;ve gone through the definition of bash scripting and concatenation. We also learned how to join string variables with two different methods.<\/p><p>We hope you found this tutorial useful. If you have any further questions, feel free to leave them in the comments section below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The majority of programming languages can connect two or more strings. One programming language that makes it effortless to concatenate [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/tutorials\/bash-concatenate-strings\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":279,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to Bash Concatenate Strings: Joining Variables in Linux","rank_math_description":"How to bash concatenate strings? A guide on concatenation also known as connecting variables is an action commonly used in string operations.","rank_math_focus_keyword":"bash concatenate strings","footnotes":""},"categories":[22648,22644],"tags":[],"class_list":["post-67132","post","type-post","status-publish","format-standard","hentry","category-managing-monitoring-and-security","category-vps"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/bash-concatenate-strings","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/como-concatenar-strings-no-bash","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/concatener-des-chaines-en-bash","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/como-concatenar-cadenas-en-bash","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/tutorial\/cara-menggabungkan-string-di-bash","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/bash-concatenate-strings","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/bash-concatenate-strings","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/bash-concatenate-strings","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/como-concatenar-cadenas-en-bash","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/como-concatenar-cadenas-en-bash","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/como-concatenar-cadenas-en-bash","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/bash-concatenate-strings","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/bash-concatenate-strings","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/como-concatenar-strings-no-bash","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/bash-concatenate-strings","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/bash-concatenate-strings","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/67132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/users\/279"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/comments?post=67132"}],"version-history":[{"count":9,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/67132\/revisions"}],"predecessor-version":[{"id":138093,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/67132\/revisions\/138093"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/media?parent=67132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/categories?post=67132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/tags?post=67132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}