Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
case "$1" in
-p)
shift
DISKLABEL=$1;;
esac
T=$(df -h /dev/$DISKLABEL |grep $DISKLABEL |awk '{print $2}')
U=$(df -h /dev/$DISKLABEL |grep $DISKLABEL |awk '{print $3}')
F=$(df -h /dev/$DISKLABEL |grep $DISKLABEL |awk '{print $4}')