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/  paste inside the new file the following code

save the file make the file executable (es: chmod +x /usr/local/bin/ use the script (from a terminal  execute: /usr/local/bin/ […]