Linux: script per ottenere informazioni sulle batterie dei portatili
Ecco un semplice script che, se eseguito da terminale, permette di ottenere informazioni su ogni batteria presente nel vostro computer portatile. #!/bin/shoDIR=$( pwd )oIFS=$IFSIFS=$'\n'for BATTERY in $( find /sys -name "BAT*" -type d 2>/dev/null );do cd $BATTERY PRESENT=$( grep 1 present 2>/dev/null) if [ "$PRESENT" != ""…
Continue reading...