From 2bfd478b72ee30661709f97dfb62618fa89b0d31 Mon Sep 17 00:00:00 2001 From: Nils Steinger Date: Fri, 2 Jun 2017 15:41:30 +0200 Subject: [PATCH] Replace dynamic `column` formatting with fixed format string --- nench.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nench.sh b/nench.sh index 08ea8ff..896fd02 100755 --- a/nench.sh +++ b/nench.sh @@ -187,7 +187,7 @@ printf '\n' printf 'Disks:\n' if command_exists lsblk then - lsblk --nodeps --noheadings --output NAME,SIZE,ROTA --exclude 1,2,11 | sort | awk '{if ($3 == 0) {$3="SSD"} else {$3="HDD"}; print}' | column -t + lsblk --nodeps --noheadings --output NAME,SIZE,ROTA --exclude 1,2,11 | sort | awk '{if ($3 == 0) {$3="SSD"} else {$3="HDD"}; printf("%-3s%8s%5s\n", $1, $2, $3)}' elif [ -r "/var/run/dmesg.boot" ] then awk '/(ad|ada|da|vtblk)[0-9]+: [0-9]+.B/ { print $1, $2/1024, "GiB" }' /var/run/dmesg.boot