From: Silvio Rhatto Date: Sat, 1 Apr 2017 17:09:50 +0000 (-0300) Subject: Usage: format available actions is columns X-Git-Tag: 0.1.0~488 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=df8673ba01dc4df5301593cf677d25886f608927;p=kvmx.git Usage: format available actions is columns --- diff --git a/kvmx b/kvmx index 1b7c4cf..0472bf1 100755 --- a/kvmx +++ b/kvmx @@ -361,7 +361,7 @@ function kvmx_usage { echo "" echo "available actions:" echo "" - grep "^function kvmx_" $0 | cut -d ' ' -f 2 | sed -e 's/kvmx_/\t/' | sort + grep "^function kvmx_" $0 | cut -d ' ' -f 2 | sed -e 's/kvmx_//' | sort | xargs -L 6 | column -t -c 6 | sed -e 's/^/\t/' echo "" echo "examples:" echo ""