projects
/
gnt-info
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04a9a9b
)
align output, save in /dev/shm/gnt-disks-smart
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 17 Feb 2020 21:01:21 +0000
(22:01 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 17 Feb 2020 21:02:14 +0000
(22:02 +0100)
gnt-disks.sh
patch
|
blob
|
history
diff --git
a/gnt-disks.sh
b/gnt-disks.sh
index
7764bdd
..
8add73e
100755
(executable)
--- a/
gnt-disks.sh
+++ b/
gnt-disks.sh
@@
-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