title: Remove white spaces from a variable
body: <p>I want to remove the white spaces from a variable in Linux Shell and echo it on the terminal.
  Following is my code:</p>
  
  <pre><code>echo "Enter your full name"
  read fname
  $fname | sed "s/ //g"
  </code></pre>
  
  <p>When I run the code it shows command not found.</p>