X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=gnt-smart-test-vs-hours.sh;h=a780af6923b4d7a1375a867fb3b01da8ea6044fd;hb=bc3565f35a155d37284394a4570d57d39cd66f07;hp=beab6831311d1cce9a70bfbe9a39b9c7fdde14e0;hpb=f8bc2b6f1475189cc2f8e08468a3155f1716f96d;p=gnt-info diff --git a/gnt-smart-test-vs-hours.sh b/gnt-smart-test-vs-hours.sh index beab683..a780af6 100755 --- a/gnt-smart-test-vs-hours.sh +++ b/gnt-smart-test-vs-hours.sh @@ -5,4 +5,6 @@ egrep '# 1' /dev/shm/gnt-smart | sed 's/: /:/' | sort > /dev/shm/gnt-smart.1 egrep 'Power_On_Hours' /dev/shm/gnt-smart | sed 's/: /:/' | sort > /dev/shm/gnt-smart.2 egrep 'Serial' /dev/shm/gnt-smart | sed 's/: /:/' | sort > /dev/shm/gnt-smart.3 join -a 2 /dev/shm/gnt-smart.1 /dev/shm/gnt-smart.2 | sed 's/ [0-9]* Power_On_Hours.*Always - / ~ /' > /dev/shm/gnt-smart.12 -join -a 1 /dev/shm/gnt-smart.12 /dev/shm/gnt-smart.3 | sed -e 's/ *- *~/ -\t~/' -e 's/ *~ */\t/' -e 's/Serial.*:/\t/' | tee /dev/shm/gnt-smart.out +join -a 1 /dev/shm/gnt-smart.12 /dev/shm/gnt-smart.3 | sed -e 's/ *- *~/ -\t~/' -e 's/ *~ */\t/' -e 's/Serial.*:/\t/' > /dev/shm/gnt-smart.123 +egrep 'Load' /dev/shm/gnt-smart | sed 's/: /:/' | awk '{ print $1 " " $11 }' | sort > /dev/shm/gnt-smart.4 +join -a 1 /dev/shm/gnt-smart.123 /dev/shm/gnt-smart.4 | sort | tee /dev/shm/gnt-smart.1234