#!/bin/bash while true; do smartctl -d ata -a /dev/sda | grep -F Load_Cycle_Count | tr -s ' ' | cut -d ' ' -f 2,10 sleep 10 done