title: Remove the trailing spaces from command line passed param in bash
body: <p>I run a command:</p>
  
  <pre><code>script.sh ___bubu__
  </code></pre>
  
  <p>The content of the <code>script.sh</code> is:</p>
  
  <pre><code>echo $1
  </code></pre>
  
  <p>When executed I get</p>
  
  <pre><code>___bubu__
  </code></pre>
  
  <p>How can I remove the trailing spaces from command line passed arguments?
  I copy some params from a file and when pasting into command line I get some spaces and I do not want to manually remove the space. I am planning to use $1 as a parameter in a script. For example I want to create a folder with $1</p>