From 7f0c928bca7d16d2b6a5e052d6f66422c64c0177 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 27 Jun 2021 21:18:23 +0200 Subject: print-status-html: sort by number --- print-status-html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'print-status-html') diff --git a/print-status-html b/print-status-html index 6a8f12c..a1bc5eb 100755 --- a/print-status-html +++ b/print-status-html @@ -69,7 +69,13 @@ EOF T p ' /proc/mdstat \ - | sort -u \ + | sed ' + s/^md\([0-9]\+\):/\1 \0/ + ' \ + | sort -k1n,1 \ + | sed ' + s/^\S\+ // + ' \ | while read -r line; do if [ -z "${line%%* finish=*min*}" ]; then duration="${line##* finish=}" -- cgit v1.2.3-70-g09d2