title: csh shell: Numerical operations with variable from file
body: <p>I am currently writing a <strong>csh shell skript</strong> and want to compare numbers that are stored in a <strong>file</strong>. There is only one number stored in this file e.g. <strong>-3.675000e+05</strong> or <strong>0.000000e+00</strong>
  The problem is, that I get an error:</p>
  
  <pre><code> if: Expression Syntax.
  </code></pre>
  
  <p>when i do:</p>
  
  <pre><code> #!/bin/csh
   set var1 = `cat file1`
   set var2 = `cat file2`
   set var3 = `cat file3`
  
   set maxtmp = 0
  
   foreach kmax (va1 var2 var3)
     if ($kmax &gt; $maxtmp) then
       set maxtmp = $kmax
     endif
  
   end
  </code></pre>
  
  <p>How can I compare those numbers?</p>
  
  <p>Thanks a lot!</p>