#!/bin/sh # $1 should be drive mountpoint, otherwise assumed /. location=${1:-/} [ -d "$location" ] || exit printf "%s\n" "\033[11m\033[10m $(df -h "$location" | awk ' /[0-9]/ {print $3 "/" $2}')"