#!/usr/bin/env bash set -euo pipefail # bash strict mode df | awk -v mountpoint="$1" -v percentage="$2" '$6 ~ "^"mountpoint"$"{if($5 >= percentage){print "FUCK"}}' # while :; do # sleep 1h # done