title: How do I append to a bash variable that is from a powershell output?
body: <p>I am using WSL and need to get the computers IP address and append &quot;:0.0&quot;. I execute a powershell command to get the IP address (random IP below) and assign that to a variable. Appending to that variable overwrites it.</p>
  <pre><code>&gt; IP=$(powershell.exe &quot;(Test-Connection -ComputerName (hostname) -Count 1).IPV4Address.IPAddressToString&quot;)
  &gt; echo $IP
  127.27.15.1
  &gt; echo &quot;${IP}:0.0&quot;
  :0.027.15.1
  </code></pre>
  <p>How do I get it to add it to the end instead of replacing the first 4 characters?</p>