capsul-flask/capsulflask/shell_scripts/list-ids.sh

3 lines
104 B
Bash
Raw Normal View History

2020-05-13 18:56:43 +00:00
#!/bin/sh
virsh list --all | grep running | grep -v ' Id' | grep -v -- '----' | awk '{print $2}' | sort