for获取多个磁盘温度

#!/bin/bash

for i in {a..z}

do
smartctl -a /dev/sd$i | grep -i "drive temperature"
smartctl -a /dev/sda$i | grep -i "drive temperature"

done

posted @ 2020-12-21 10:40  祝福满地  阅读(102)  评论(0编辑  收藏  举报