[lxc-users] Clean output for lxc list

Mark Constable markc at renta.net
Thu Mar 10 04:20:13 UTC 2016


I'm not sure if this is already possible but a suggestion for lxc list
would be to provide a "clean" output option without ascii borders. Using
mysql as an example it would be neat if something like this was possible...

[[ $(lxc list $HOST -BN -cs) = RUNNING ]] && echo yay || echo nay

~ mysql -e "show databases"
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
+--------------------+

~ mysql -Be "show databases"
Database
information_schema
mysql

~ mysql -BNe "show databases"
information_schema
mysql


More information about the lxc-users mailing list