title: file line count in ksh unix
body: <p>I am trying to get line count from a file like below in a ksh script. But it returns nothing :</p>
  
  <pre><code>filerecordcount= $((`wc -l &lt;../data/act.dat`))
  </code></pre>
  
  <p>I also tried these : </p>
  
  <pre><code>    filerecordcount= `wc -l &lt;../data/act.dat`
  
      filerecordcount= $(wc -l &lt;../data/act.dat)
  </code></pre>
  
  <p>When i print the variable its not printing the value in the variable.</p>
  
  <pre><code>print "Record Count in .dat file : $filerecordcount." 1&gt;&amp;2;
  </code></pre>
  
  <p>But when i try the same from command prompt it returns the count </p>
  
  <pre><code>wc -l&lt;../data/act.dat
  </code></pre>