title: Concat Variable (date) and String in shell unix - bash
body: <p>I'm trying to concat a var (date) and string to have a file with current date name.</p>
  
  <p>My code.</p>
  
  <pre><code>days="$(date +"%Y%m%d_%H%M")"
  echo "SKIP" &gt; ${days}_EMERGENCY.txt
  </code></pre>
  
  <p>but when I run, I get a file with a ? in file name, like this:</p>
  
  <p><a href="https://i.stack.imgur.com/miOWH.png" rel="noreferrer"><img src="https://i.stack.imgur.com/miOWH.png" alt="enter image description here"></a></p>
  
  <p>Am I doing something wrong?</p>
  
  <p>EDIT</p>
  
  <p>Looking at symbol, ? stands for \r - could it be because I'm writing on notepad and then upload via ftp the .sh script?</p>
  
  <p>EDIT 2</p>
  
  <p>Tried with vi on local machine - now it's also worse.
  <a href="https://i.stack.imgur.com/KFoF7.png" rel="noreferrer"><img src="https://i.stack.imgur.com/KFoF7.png" alt="enter image description here"></a></p>