source: lab.git/TipAndDoc/.bin/smartgrep @ 6473c3b

Last change on this file since 6473c3b was 8333ea0, checked in by mitty <mitty@…>, 14 years ago

git-svn-id: https://lab.mitty.jp/svn/lab/trunk@92 7d2118f6-f56c-43e7-95a2-4bb3031d96e7

  • Property mode set to 100755
File size: 102 bytes
RevLine 
[46dc3f4]1for DEVICE in `ls /dev/[hs]d?`
2do
3    echo -n "$DEVICE: "
4    sudo smartctl -a $DEVICE | grep $1
5done
Note: See TracBrowser for help on using the repository browser.