aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-04-01 14:09:50 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-04-01 14:09:50 -0300
commitdf8673ba01dc4df5301593cf677d25886f608927 (patch)
tree19430703c3901d4f1ffc74e053aeffa72c2daf84
parenta081dc7bf787ae58df3602f3b717922f76599979 (diff)
downloadkvmx-df8673ba01dc4df5301593cf677d25886f608927.tar.gz
kvmx-df8673ba01dc4df5301593cf677d25886f608927.tar.bz2
Usage: format available actions is columns
-rwxr-xr-xkvmx2
1 files changed, 1 insertions, 1 deletions
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 ""