for DEVICE in `ls /dev/[hs]d?` do echo -n "$DEVICE: " sudo smartctl -a $DEVICE | grep $1 done