GET_SIZE=$(qm guest exec 1317 -- df -h)
echo $GET_SIZE
{ "exitcode" : 0, "exited" : 1, "out-data" : "Filesystem Size Used Avail Use% Mounted on\nudev 2.3G 0 2.3G 0% /dev\ntmpfs 479M 672K 478M 1% /run\n/dev/mapper/pmg-root 28G 2.7G 24G 11% /\ntmpfs 2.4G 1.1M 2.4G 1% /dev/shm\ntmpfs 5.0M 0 5.0M 0% /run/lock\n" }
$ echo '{ "exitcode" : 0, "exited" : 1, "out-data" : "Filesystem Size Used Avail Use% Mounted on\nudev 2.3G 0 2.3G 0% /dev\ntmpfs 479M 672K 478M 1% /run\n/dev/mapper/pmg-root 28G 2.7G 24G 11% /\ntmpfs 2.4G 1.1M 2.4G 1% /dev/shm\ntmpfs 5.0M 0 5.0M 0% /run/lock\n" }' | jq -r '."out-data"' | column -t
Filesystem Size Used Avail Use% Mounted on
udev 2.3G 0 2.3G 0% /dev
tmpfs 479M 672K 478M 1% /run
/dev/mapper/pmg-root 28G 2.7G 24G 11% /
tmpfs 2.4G 1.1M 2.4G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock