for sd in `ls /dev/sd* | egrep '[a-z]$'`; do c=`sudo smartctl -A --all -d sat $sd | grep Vendor -A 50 | grep Self-test -B 50`; echo $sd; echo -e "$c" | grep Vendor -A $((`echo -e "$c" | wc -l` - 5)); done
留言
張貼留言