title: Converting string to integer in Linux using shell
body: <p>I am trying to read file which contains value &quot;0&quot; which is enclosed in double quotes. After this I need to perform decision based on the value like</p>
  <pre><code>while read line;do result=$line;done &lt; File.csv
  if [ $result -gt 0 ]
  
  then
         echo &quot;Failed&quot;
  fi
  </code></pre>
  <p>Now this is giving me error like integer expected. Please help.</p>