projects
/
gnt-info
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
0aa0b98
)
relax smart dump names for real jbod disks
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 17 Feb 2020 19:31:34 +0000
(20:31 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 17 Feb 2020 19:31:34 +0000
(20:31 +0100)
smart-query.sh
patch
|
blob
|
history
diff --git
a/smart-query.sh
b/smart-query.sh
index
ac88f0f
..
5ba086a
100755
(executable)
--- a/
smart-query.sh
+++ b/
smart-query.sh
@@
-5,7
+5,7
@@
test -e /tmp/s.last && rm /tmp/s.last
for col in "Device Model" "User Capacity" $*
do
# sed and sort is required for join later
- grep "$col" /dev/shm/smart.sd
?.
* | sed 's/:/: /' | sed \
+ grep "$col" /dev/shm/smart.sd* | sed 's/:/: /' | sed \
-e "s/$col: */ : /" \
-e "s/[0-9]* $col .* \([0-9][0-9]*\)$/ : \1/" \
| sort > /tmp/s.this