battery (1)

Davide Airaghi

Linux: get info about notebook battery

Below you can find a very simple shell script that gets information about every battery present in your notebook and shows a summary. create a new file (es: /usr/local/bin/battery.sh) paste inside the new file the following code #!/bin/sh oDIR=$( pwd ) oIFS=$IFS IFS=$'\n' for BATTERY…

Continue reading...