From: tfheen Date: Thu, 10 May 2012 07:55:45 +0000 (+0000) Subject: Output sorted paths X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6f2fb2a3c92138b996721efff3e2588e9642a8a;p=dotfiles Output sorted paths git-svn-id: file:///svn/tfheen/trunk/dotfiles@1515 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- diff --git a/zshfunc/reinit-samhain-one b/zshfunc/reinit-samhain-one index 2ba39b1..c85f9a6 100644 --- a/zshfunc/reinit-samhain-one +++ b/zshfunc/reinit-samhain-one @@ -18,7 +18,7 @@ ssh $host -t ' check > "$t" 2>&1; if [ "`grep "^CRIT" "$t" | wc -l`" != 0 ]; then echo "samhain db errors found:"; - sed -e "s/.*path=<\([^>]*\)>, .*/\1/" "$t"; + sed -e "s/.*path=<\([^>]*\)>, .*/\1/" "$t" | sort; echo; echo "Enter 'y' to continue upgrade and update samhaindb for `hostname`"; read ans;