align output, save in /dev/shm/gnt-disks-smart
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 17 Feb 2020 21:01:21 +0000 (22:01 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 17 Feb 2020 21:02:14 +0000 (22:02 +0100)
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