Improved formatting of the ndb status a bit

This commit is contained in:
Fernando Ipar
2017-10-10 10:43:58 -03:00
parent 58d1d2c3b4
commit a77b68ed73
2 changed files with 3 additions and 3 deletions

View File

@@ -561,8 +561,8 @@ format_ndb_status() {
local file=$1
[ -e "$file" ] || return
# at the time being, just cat the file.
cat "$file"
# We could use "& \n" but that does not seem to work on bsd sed.
egrep '^[ \t]*Name:|[ \t]*Status:' ndb_status.txt|sed 's/^[ \t]*//g'|while read line; do echo $line; echo $line | grep '^Status:'>/dev/null && echo ; done
}
# Summarizes per-database statistics for a bunch of different things: count of