#!/bin/sh echo "\nRUNNING:" pct list | grep running | awk '{printf("LXC\t%s\t%s\n",$1,$3)}' qm list | grep running | awk '{printf("VM \t%s\t%s\n",$1,$2)}' echo "\nSTOPPED:" pct list | grep stopped | awk '{printf("LXC\t%s\t%s\n",$1,$3)}' qm list | grep stopped | awk '{printf("VM \t%s\t%s\n",$1,$2)}' echo ""