#!/bin/bash prct=$(acpi | grep 'Discharging' | awk '{print $4}' | sed 's/,//') batid=$(acpi | grep 'Discharging' | awk '{print $2}' | sed 's/://') echo "BAT$batid $prct -"