script is as follows:
filename="/Users/ra222c/bkdockerhosts"
cat "$filename" | while IFS="" read -r p || [ -n "$p" ]
do
echo $p
out=$(ssh "$p" "df -h | awk '/disk-name/ {print \$5}' | sed 's/%//'")
if [ $out -le 85 ]; then
echo $p
fi
done
the file contains about 65 or so hostnames. I'm just trying to check if disk usage is less than 85% across all hosts.