source: lab.git/.bin/smartgrep @ 920ad9e

trunk
Last change on this file since 920ad9e was df4fa7b, checked in by mitty <mitty@…>, 14 years ago
  • rename bin/ to '.bin/'
    • only appear on 'ls -a'

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

  • Property mode set to 100755
File size: 102 bytes
Line 
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.