calc-size.sh 162 B

123456789
  1. #!/bin/bash
  2. DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  3. SPACE_REQ=$(du -sb "$DIR/../base" | cut -f 1)
  4. let "SIZE = ($SPACE_REQ / 3400)"
  5. echo $SIZE