diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-04-01 14:14:06 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-04-01 14:14:06 -0300 |
commit | ac71538396fed32de4ee8cc7e78b89a3fcdd83ce (patch) | |
tree | 4a6f95927da742e7e08bbd47b611806163fe1148 | |
parent | df8673ba01dc4df5301593cf677d25886f608927 (diff) | |
download | kvmx-ac71538396fed32de4ee8cc7e78b89a3fcdd83ce.tar.gz kvmx-ac71538396fed32de4ee8cc7e78b89a3fcdd83ce.tar.bz2 |
List: format in columns
-rwxr-xr-x | kvmx | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -370,12 +370,12 @@ function kvmx_usage { echo -e "\t$BASENAME clone <orig-guest> <dest-folder>" echo "" - local list="`kvmx_list | xargs`" + local list="`kvmx_list`" if [ ! -z "$list" ]; then echo "available virtual machines:" echo "" - echo -e "\t$list" + echo "$list" | sed -e 's/^/\t/' echo "" fi @@ -525,7 +525,7 @@ function kvmx_rsync { # List guests function kvmx_list { if [ -e "$GLOBAL_USER_CONFIG_FOLDER" ]; then - ls $GLOBAL_USER_CONFIG_FOLDER + ls -1 $GLOBAL_USER_CONFIG_FOLDER | xargs -L 6 | column -t -c 6 fi } |