source:
lab.git/TipAndDoc/.bin/smartgrep
@
294a3aa
| Last change on this file since 294a3aa was 8333ea0, checked in by mitty <mitty@…>, 15 years ago | |
|---|---|
|
|
| File size: 102 bytes | |
| Rev | Line | |
|---|---|---|
| [46dc3f4] | 1 | for DEVICE in `ls /dev/[hs]d?` |
| 2 | do | |
| 3 | echo -n "$DEVICE: " | |
| 4 | sudo smartctl -a $DEVICE | grep $1 | |
| 5 | done |
Note: See TracBrowser
for help on using the repository browser.
