TOTAL=0; for mem in $(cat /etc/pve/nodes/ddb01/qemu-server/* | grep memory | cut -d " " -f 2); do TOTAL=$(($TOTAL+$mem)); done; echo "Total : $TOTAL"