nicer output of failing fans
[dell-switch] / fans
diff --git a/fans b/fans
index 9125c73..31af2a4 100755 (executable)
--- a/fans
+++ b/fans
@@ -2,5 +2,5 @@ echo "All fans breakdown by status:"
 grep Fan log/*system* | cut -d: -f3 | sort | uniq -c
 echo
 echo "Failing fans:"
-grep -B 15 'NOT' log/*system* | egrep '(NOT|Description|Type)'
+grep -B 15 'NOT' log/*system* | egrep '(NOT|Description|Type)' | grep -v -- -Type: | sed -e 's/^[^_]*_//' -e 's/_[^-:]*[-:]/ /'