 Hey, what is going on guys? Root of the Null here come back at you with some more batch tutorials I'm like the Windows command line started I'll bring it right down here so you guys can see it and let's get to some let's get to some work today now I want to talk to you guys about something called string concatenation now You can remember that string is a data type or like a form of a variable that we usually work with that Kind of displays text or letters or like words or sentences And it really allows us to be able to display some information to our users or even it's just some information that we need to be able to keep track of That's just it's just like a word or even a little bit more than that but Concatenation or to concatenate something is really the action of adding two strings together Now this can be done in other languages like Python or C++ or maybe even PHP or visual basics Really you can you can obviously enumerate and list off as many languages You'd like because there are a whole ton of ways to be able to do this But in Python it's real simple with just a simple plus sign like it'll go ahead and add on like if using a plus sign It's adding to something and you can add on the string that you'd like So let's go ahead and set a string to equal John Now if we go ahead and type in a string We actually get the value of it John is not recognizing this turn of their internal external command. Okay, that's fine We've got John. He's he's the value of our string variable. So let's go ahead and create a next another thing Let's go ahead and create string and we're gonna try and add on to it. We're gonna do string plus equals Hammond like you would normally do in Python or something we can just go ahead and use this the plus sign to add on to it, right? Okay, that runs so if we if we actually go ahead and type out string We still have John Huh, that's a little strange, isn't it? So because we're trying to add on here. We're using the plus equal sign We're having a space so we can have Hammond But let's take a look at our variables. Let's use the set command If we scroll up here to string Once I find it Crap there is Now we've got string here it's still John and notice down here we have string plus So it didn't actually add on to the string variable. They created a whole new variable called string plus So we really can't do that Can we let's go ahead and take a look at it again if we Can I reset the shell? No, okay. No, that's only Linux. I'm sorry I'm gonna go ahead and create a new shell so all the variables aren't keep track of but hey Okay, so let's see we set string can equal John And know what we can do is we can use the string of the variable expansion We can actually get the value of it of the current variables on our case We're gonna set string to the value of string and then we'll add on Hammond So now when we display string It's still not gonna get us anywhere and we're gonna take a look at why that is right now Because string equals John Hammond Okay, so when we're taking a look at it inside remember, we've got a space Character here. We've using white space. So we actually we can't look at it like we've been looking at it so far We actually do have to display it to the screen So I'm getting a little bit of a head of myself because I wanted to introduce this to you guys in another video But hey take a look at it here It is now the echo command the echo command will actually display output So in our case when we pass in String it'll show John Hammond because that's what it really is we've got We've added set string. We've done set string and we've first added it to John That's what we did first. So when we echo string It's initially John and we can do is we can use the actual value of that variable and then go ahead and continue As we would normally do so we could just change it to like John white if we really wanted to Now when we display that out We have John white so it's a little bit of concatenation without really concatenating on it It's not actually adding or appending anything on the string, but we have look we have like an illusion We have a sort of way to be able to do that Because we're just using the actual value inside of another value if that makes any sense But that's really all I want to show you guys today I'm sorry. There was a little bit of a flop between looking at echo and just being able to display it inside the shell But I hope you guys enjoyed this regardless. I hope you guys can understand this and you know We'll be working more about these things in a whole another video. Thank you guys for watching and I'll see you again. Bye