# df -h | grep "$partition" | awk '{print $5}' | sed 's/%//' 24 # df -h | grep -Po "\d+(?=%\s+$partition)" #