From 531a5bcf05949212366b6a4a10bbe44b8c2ecbe5 Mon Sep 17 00:00:00 2001 From: Nick Date: Mon, 6 Apr 2020 12:56:10 -0400 Subject: [PATCH] fixed last , --- hdhrstatus.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hdhrstatus.sh b/hdhrstatus.sh index 0ac709d..dc996e1 100755 --- a/hdhrstatus.sh +++ b/hdhrstatus.sh @@ -5,7 +5,7 @@ tunerCount="3" # tuner count minus 1 since tuners start at 0 printdata () { IFS=$'\n' -echo "Tuner Number, Virtual Channel, Frequency, Program Number, Modulation Lock, Signal Strength, Signal Quality, Symbol Quality, Streaming Rate, Resource Lock" +echo "Tuner Number, Virtual Channel, Frequency, Program Number, Modulation Lock, Signal Strength, Signal Quality, Symbol Quality, Streaming Rate, Resource Lock," for f in $(seq 0 $tunerCount); do #for f in 0 1 2 3; do printf "Tuner $f, "; @@ -16,4 +16,4 @@ for f in $(seq 0 $tunerCount); do done } -printdata | column -t -s, +printdata | rev | sed 's/,//' | rev | column -t -s,