projects
/
lab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* rename bin/ to '.bin/'
[lab.git]
/
.bin
/
smartgrep
diff --git a/.bin/smartgrep
b/.bin/smartgrep
new file mode 100755
(executable)
index 0000000..
2a5c5c3
--- /dev/null
+++ b/
.bin/smartgrep
@@ -0,0
+1,5
@@
+for DEVICE in `ls /dev/[hs]d?`
+do
+ echo -n "$DEVICE: "
+ sudo smartctl -a $DEVICE | grep $1
+done