title: Check file size in hdfs
body: <p>I am able to retrieve the size of a hdfs file using the following command :</p>
  
  <pre><code>hadoop fs -du -s /user/demouser/first/prod123.txt | cut -d ' ' -f 1
  </code></pre>
  
  <p>which is giving me the output as 82(which is in bytes).
  Now i want to merge this file with another file only if its size is less that 100 MB. I am using shell script to write all these commands in a single file.
  How do I convert it into MB and then compare the size? Is there any specific command for that?</p>