title: shell script for awk print divide value with 1024
body: <p>I am trying to do some arthimatic operations on awk output process. 
  my sample file contains string and it's count. Now i am trying to make the count values to be in format of MB (defualt count will come in bytes.) </p>
  
  <p>Example :
         myfile.txt</p>
  
  <pre><code>   a 123455
     b 34455566
     c 10394934839
     d 102445555
  </code></pre>
  
  <p>my script :</p>
  
  <pre><code>  cat myfile.txt | while read line; do name=$line ; name=`echo $fname|awk '{print   $1}'` ; cnt=`echo $fname|awk '{print $1}'`; if [$cnt -gt 1024] ; then echo "$name value in critical $cnt";fi done
  </code></pre>
  
  <p>Problem: I want the cnt value should be convert into MB ( cnt/1024/1024) . </p>
  
  <p>no clue how to achieve this. </p>