#!/bin/bash file="vnc.vm" grep instance-00 /var/lib/nova/instances/$1/libvirt.xml > $file awk -F ">" '{print $2}' $file > $file'.1' awk -F "<" '{print $1}' $file'.1' > $file'.2' instance=$(cat $file'.2') rm vnc.vm* virsh vncdisplay $instance
From here you can search these documents. Enter your search terms below.