[CentOS] virtdown script

Johnny Hughes johnny at centos.org
Tue May 3 17:33:14 UTC 2011

On 05/03/2011 09:39 AM, Tim Dunphy wrote:
> virsh list | grep -v -e Id -e --- -e Domain-0 | awk '{print $1}'

Do you want the "ID Number" or the "Name" to pass in?  That gives you
the number, I think you want the name ... that would be $2 not $1.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos/attachments/20110503/961bffa9/attachment.sig>

More information about the CentOS mailing list