#!/bin/sh location=${1:-/} [ -d "$location" ] || exit df -h "$location" | awk ' /[0-9]/ {print $3 "/" $2}'