align output, save in /dev/shm/gnt-disks-smart
[gnt-info] / gnt-disks.sh
index 7764bdd..8add73e 100755 (executable)
@@ -6,4 +6,4 @@ echo "# from lsblk"
 gnt-cluster command -M lsblk --scsi --output SIZE,MODEL --noheadings --bytes | grep -v '^return' | grep -v '^----*$' | tee /dev/shm/gnt-disk-size-model | cut -d: -f2- | sort | uniq -c | sort -k2 -n | tee /dev/shm/gnt-disks-models
 
 echo "# from smart"
-cat /dev/shm/gnt-smart-query | cut -d: -f3,4 | sort | uniq -c
+cat /dev/shm/gnt-smart-query | cut -d: -f3,4 | sort | uniq -c | tee /dev/shm/gnt-disks-smart | column -s : -t