Skip to content

Instantly share code, notes, and snippets.

@tomassedovic
tomassedovic / virt
Last active January 18, 2017 10:42 — forked from petrblaho/virip
Simple script for detecting IP address of running virtual machine
#!/bin/bash
if [[ $# == 0 ]]; then
echo Usage:
echo "virt <command> <vm> args"
echo Command is: ip, ssh, scp, sshfs
exit 1
fi
cmd="$1"; shift