report md devices and zfs spare cache and log drives
[sysadmin-cookbook] / recepies / smart / count-drives.sh
1 ls */smart.* | cut -d. -f2 | cut -d_ -f-3 | cut -d\- -f1 | sort | uniq -c