title: Bash concatenate strings results in each variable within quotes
body: <p>I am trying to concatenate 2 variables into a string in Bash. I have seen a lot of posts on this and for some reason they don't work for me. Here is my script which just takes a file name prefix and adds the current date to the end.</p>
  
  <pre><code>#!/bin/bash
  now=$(date +”%Y%m%d”)
  fname=“file”
  x=$fname$now
  echo $x
  </code></pre>
  
  <p>This results in <code>"file""20150316"</code> instead of the desired <code>"file20150316"</code>.</p>
  
  <p>Please help. Thanks.</p>