capsul-flask/capsulflask/shell_scripts/listIds.sh

3 lines
104 B
Bash
Raw Normal View History

#!/bin/sh
virsh list --all | grep running | grep -v ' Id' | grep -v -- '----' | awk '{print $2}' | sort