title: How to get only folder size from "du"?
body: <p>I need to get the size of my folder, for comparison. But I get the folder size with the path. How to get only the size of my folder? I use the following command in <code>bash</code>:</p>
  
  <pre><code>size=`du -b --max-depth=0  ./main_folder/data`
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>12260550 ./main_folder/data
  </code></pre>
  
  <p>Expected:</p>
  
  <pre><code>12260550
  </code></pre>