From 95b3e4bb744932ce4eac14bb350cc0455d15848a Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sat, 16 Apr 2016 16:34:33 +0200 Subject: mv --- monitor-soft-raid | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 monitor-soft-raid (limited to 'monitor-soft-raid') diff --git a/monitor-soft-raid b/monitor-soft-raid new file mode 100755 index 0000000..1dc7da4 --- /dev/null +++ b/monitor-soft-raid @@ -0,0 +1,7 @@ +#!/bin/zsh + +T="[$(printf 'U%.0s' {1..$1})]" +S=$(awk '/^md/ {printf "%s: ", $1}; /blocks/ {print $NF}'