#!/bin/sh if [ "x$1" = "x" ]; then echo expected partition as first argument exit 1 fi df -P $1 | tail -n1 | awk '{ print $4 * 1024 }'