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

3 lines
104 B
Bash
Executable File

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