|
#!/bin/bash
|
|
df -HP | grep -E '^/dev/|rootfs|^//' | awk '{ print $5 " " $1 }' | while read output;
|
|
do
|
|
usep=$(echo $output | awk '{ print $1}' | cut -d'%' -f1 )
|
|
partition=$(echo $output | awk '{ print $2 }' )
|
|
echo system\|mountpoint\|freespace\|$partition $usep
|
|
done
|