#!/bin/bash set -eu set -o pipefail path_to_filesystem="$1" df -BG "$path_to_filesystem" | \ grep -v '^Filesystem\>' | \ awk ' { print $4 }' | \ sed 's/G$//'