From 4c783de30d2f8a0520f40610b1ef1082f5df548a Mon Sep 17 00:00:00 2001 From: Rob Date: Mon, 16 Mar 2020 07:47:22 +0100 Subject: [PATCH] clean akku output --- akku.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/akku.sh b/akku.sh index ece90a9..4a68e54 100755 --- a/akku.sh +++ b/akku.sh @@ -3,4 +3,6 @@ batt=`acpi -b` batt=($batt) #echo "#[fg=red]♥♥♥#[fg=white]♥♥♥#[fg=black] ${batt[3]}" -echo "${batt[3]}" +batt="${batt[3]}" +##Nur Substring bis zum ersten Komma. +echo ${batt%,}