#!/bin/sh disks=$(df -h --type=ext4 --type=nfs4 | grep -Evi 'Mounted' | awk ' { print $6 ": " $4 } ' | tr ' ' '\n') echo $disks